Hello all,
I’m sure this question has been asked many times, but what is the easiest way to align and space items for a GUI. I have my 2D menu assets and have placed them in planes and am trying to layer them and having alot of trouble making it look good. What is the recommended approach to place your gameobject and start positioning them correctly. Any help would be appreciated. An example would be I have my main menu plane and I have my menu buttons game object with 7 buttons contained in it.
Thanks
From the point of view of visually laying out the GUI, you can make all the element rectangles public variables and set them in the inspector while the GUI is running. The values are lost as soon as you cancel play mode but you can note them down and type them back in.
What I have been doing is making adjustments before running it and I can see it in the game window. Further to my previous question, is there a better way or a tool to use? For example, if I create a new camera and pull in a few empty game objects and then add them planes with the images, I thought things would be placed in the center of the screen. What happens now is it seems like they are going all over the place.
Somewhat related question… But can’t help but wonder if it’s possible to scale the entire GUI? No matter what tricks I try, with position, sizing, relying on variables for scale, screen.height etc., the gui will never look the same when you resize the game window in the editor or if someone zooms the browser.