- Home /
GUI Resize Problem
Hello i have lobby and it contain many buttons and area i cant really manage it, with with different size of Screen
for example i have :
if(GUI.Button(new Rect(Screen.width/2 - 325,Screen.height/2 + 140,100,30), "Refresh"))
and its under the this area
GUILayout.BeginArea(new Rect(300,57,Screen.width - 330, Screen.height - 350), "List");
its only work for 1024x768 >> if i used 800x600 it will missUp Much!
so i just need way to (array umm or tide) this buttons that can used for multisize
please help me and sorry for bad English
Answer by lucidio · Feb 11, 2013 at 09:50 AM
If you want to resize your button, you have to resize the area too. Try to indicate all the measures depending of the screen width and height.
For example GUI.Button(new Rect(Screen.width/2 - "WidthButton"/2, Screen.height/2 - "HeigthButton"/2, WidthButton,HeigthButton)); //You must choose heightbutton and widthbutton
This way make all the measures independent of the screen size.
Your answer
![](https://koobas.hobune.stream/wayback/20220613092402im_/https://answers.unity.com/themes/thub/images/avi.jpg)