- Home /
Is that a resolution-related issue?
Hello i have a resolution related question. So i have this project that i created in my desktop with the resolution at 1440x900 with some GUI Boxes and Buttons in there. When i moved it to my laptop which runs at a lower resolution, the GUI stuff was out of place a bit. Is this because of the different resolutions or is it something else? Can it be fixed?
Imagine this:
You've built a 4.5 meters large and 500kg heavy statue of optimus prime in your garden entirely made of wood. Now you want to put this statue into your room but suddenly you realize the room is only 2.6m high. What should you do?
If you've found a solution replace the "statue" with GUI and "your room" with the screen.
You've built a 4.5 meters large and 500kg heavy statue of optimus prime in your garden entirely made of wood.
How did you know that?!?! Are you spying on me??
Answer by Eric5h5 · Apr 21, 2013 at 11:19 PM
Don't hard code the values to a specific resolution; use Screen.width and Screen.height as appropriate. Change the resolution/aspect ratio of the game window frequently when you're working to make sure that what you're doing is not tied to a specific resolution.