How to set the GUI (buttons, text and so on) position for each type of screen
Hi, I wanted to ask if there is a quick way to set the GUI in the chosen position that remains the same for every type of screen ... I'm new so I know little about the GUI. I'm using Unity 5.2.3
Answer by unity_21erushbrook · May 31, 2018 at 08:54 PM
Hi,
The answer in simple but you may need to reposition all of your UI (sorry!)
Go to each canvas in your scene that is ONLY for GUI add a component that is called Canvas Scaler. Set it to scale with screen size and set the reference to what you think most players are going to use. Also turn on pixel perfect. The GUI will now shrink and grow to ajust to the screen size! (don’t worry, it wont stretch)
Thank you so much, and sorry for the late reply!
Before I forget, and if the user does not take the measures required by the canva scaler ... what should I do?
Your answer
Follow this Question
Related Questions
Gui not appearing in Game Mode 1 Answer
Scaling GUI with resolution 0 Answers
JavaScript function OnGUI error 1 Answer
GUI.DragWindow() not working over other UI 0 Answers
uGUI Batch Problem 0 Answers