- Home /
GUILayout.BeginArea expand to screen height?
I know you can use ExpandHeight to expand buttons/etc to whatever the height of a BeginArea is, but how can I make a BeginArea expand to the screen height?
So, if the resolution is 620x320, and the Y position of the BeginArea is Screen.height/3, how do I get the height of it to expand all the way down, and adjust when the Y position/resolution changes?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613050027im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why do my GUI Layout Buttons not appear on screen? 0 Answers
Why are GUILayout controls started before the BeginArea they are wrapped in? 0 Answers
GUILayout.BeginArea makes problems! 0 Answers
Get Area to Spread Equally with Screen.Height or Screen.Width 2 Answers
Drawing several BeginArea inside a BeginScrollview (GUILayout) produces an unexpected behaviour 1 Answer