- Home /
GUI SCREW UPS!
So when I add a health bar in GUI it appears exactly where I want it but when I build it / Export it It is all wacky and I spent hours adjusting and rebuilding but I can't get it perfect! Plus my friends get confused when trying to play when picking a resolution.
Answer by Berenger · Jun 26, 2012 at 12:47 AM
Make sure the GUI looks good in every resolution is, in my opinion, a pain in the ass. The best you can is, first, never ever work in Free aspect for the game view. Then you need to use GUILayout and proportions of the screen size ( Rect( Screen.width * .1f etc ).
PS : No need to be that violent in your title, we would have read it anyway ;)
I always work in Free aspect, that way you can easily tell if the GUI is working right or not just by resizing the game view a bit, and you're guaranteed that you're not coding for a particular resolution.
Your answer
Follow this Question
Related Questions
Restart with GUIText 2 Answers
Gui Health Display Help! 1 Answer
Taking a hit 3 Answers
Can you make a GUI.Box follow a player's position?(SOLVED) 7 Answers
Deduct health on collision 2 Answers