- Home /
GUILayout bottom to top
Hey guys,
I'm trying to make a GUILayout start from the bottom and populate upwards. I can't just invert my list because only the bottom of the GUILayout can be seen. I noticed that, in the scripting reference, it actually says that GUILayout.BeginVertical populates from top-down, so I probably won't be able to use that.
I'm looking for any suggestions of new avenues I can explore, with regard to my question. I have considered making my own version of the GUILayout class, but I want to know if there are any simpler options before I being working on that.
Thanks for taking the time to read this! All suggestions are appreciated. -Gibson
Answer by AVividLight · Nov 01, 2013 at 12:17 AM
Hello all,
I figured this out, and the solution made me feel really stupid. I simply put a flexibleSpace in the top of my layout.
Hope this helps! -Gibson
Thank for the idea! For people who are looking for details, following code will align buttons at left bottom corner: GUILayout.BeginVertical( GUILayout.Height( Screen.height ) ); GUILayout.FlexibleSpace(); GUILayout.Button( "Button1" ); GUILayout.Button( "Button2" ); GUILayout.EndVertical();
Your answer
Follow this Question
Related Questions
Invert filter reticule 1 Answer
RectTransform Rect inverted 0 Answers
How do you find the rect of a GUILayout item? 1 Answer
How to apply multiple styles to the same line(s) of GUI text 1 Answer
Bullet Points 1 Answer