How to move a GUI button

I understand that this might be kind of a dumb question, but how can a button using the BabylonJS GUI be moved? The only positioning element I could find like this is padding, but that doesn’t change actual position, just the element width.

https://doc.babylonjs.com/how_to/gui#position-and-size

Left and top

2 Likes

For example ,I want button on the screen bottom, how can i do?

Its on the same page of the docs as above link

OK, I have a little problem dose Babylon have ‘margin-bottom’?

Is padding enough?

Padding looks like can’t, I want result like css margin

so - no, we don’t.

Now - if you want to explain your use case and give a bit of context as to why padding doesn’t fit in to your scenario, we might be able to help.

@msDestiny14 - FYI

1 Like

Full API for GUI control Control | Babylon.js Documentation

2 Likes