- Home /
UI is positiont different when game is build.
Hello guys i am making an RPG, now i want to create bars for health, hunger,stamina etc. I have all the UI elements how i want them in the editor but when i build and play the game they don't show up. I have found out that when i move the UI out of the canvas it will shpw up in the build, but not in de editor. I don't want to keep building the game to check my UI. Does someone know what to do. (My editor is set to the same resolution as my build)
Answer by DoTA_KAMIKADzE · May 01, 2015 at 01:56 AM
Most likely you will be pleased with my answer OVER HERE. But in case you'll want to use constant physical/pixel size - firstly watch tutorials provided in link above^ to understand anchoring system and then just set your resolution in Game view according to the one you need in order to see your positioning accurately.
Hell0 DoTA_$$anonymous$$A$$anonymous$$I$$anonymous$$ADzE, i have tried all the things the documentation says about the GUI, i've also looked at the other question under the link OVER HERE, but the GUI is positioned at the right place in de build but in the game view in unity it self the GUI is positioned lower then i want. i have been brainstor$$anonymous$$g for the last couple of days about this problem and i really want to continue my game and not having to worry about GUI. all help is welcome. (if someone needs a screenshot of my stuff just ask and i will put some up)
ps. for this project i still use the old GUI system if the script is needed to solve my answer i will happily put it up.
GUI is a whole different story, that one you should position and resize manually depending on Screen variables (e.g. if you want your GUI to be at center then position it at ((Screen.width/2) - (yourGUIwidth/2)) and so on).
Your answer
Follow this Question
Related Questions
Multi resolution GUI From 1920x1080 source to all lower resolutions (canvas scaler dead end) 0 Answers
How to make multiple UI buttons clickable (or in this case tapable) at once. 0 Answers
Canvas is low resolution unless paused and resumed 0 Answers
Larger phone sizes cant detect input 2 Answers
Unity UI slow?(WaitingForJob and Canvas.RenderOverlays related problem) 1 Answer