How can I keep GUI elements at the bottom of the browser window?

I have some GUI elements that I want to keep at the bottom of the screen. The elements are contained in a BABYLON.GUI.Rectangle.

I found the textVerticalAlignment property which looks promising, but whilst there is a BABYLON.GUI.Control.VERTICAL_ALIGNMENT_TOP value defined, there is no BABYLON.GUI.Control.VERTICAL_ALIGNMENT_BOTTOM, and I am not even sure if this property is applicable to BABYLON.GUI.Rectangle.

Any help much appreciated.

I solved this one. There is in fact a BABYLON.GUI.Control.VERTICAL_ALIGNMENT_BOTTOM, it just did not show up in my intellisense for some reason, and the property that you need to set for a rectangle is verticalAlignment.

1 Like