I have set a gui position with "Screen.width*,Screen.height *",but when I resize the Screen window,the gui didn't move to relative position .why?
0% = Left side. 100% = Right side.
0% = Top. 100% = Bottom.
If you ALWAYS want your group to be in a specific spot on screen regardless of resolution you cannot use absolute numbers in your code. Your code should probably look something like:
This is because, obviously, different resolutions have a different number of pixels. So when you say you want it 500 pixels from the right side of the screen that's almost on the left side of the screen in a Web Player, or middle-right side in a Full screen application.
answered May 10 '11 at 11:34 AM
The (0,0) point in GUI is the top-left corner.
Your buttons move horizontally though maybe not the way you want. I suggest you change your magic numbers atleast for the values of the group to public variables atleast or do somekinda calculation like where is the center of the screen or whatever.
But the reason your controls don't move vertically is that the
Hope that was clear enough that it helped.
answered Nov 16 '10 at 07:15 AM