- Home /
Title screen is off to the side in build
I've finished creating my title screen and I decided to build it to see how it looks. The strange thing is, however, that the title screen is off to the right side of the screen in the build. What makes it strange is that it only happens here (in play mode, everything is centered correctly). I tried re-positioning the camera to be in the center of the main canvas of my title screen, but literally nothing changed! Well, nothing good changed, because now the background I had is now gone too! I have no idea what is going on and I don't know what I can do to make my title screen (and background) be in the center of my camera.
Unfortunately, I also have no idea what I can provide to make it easier to answer this question, so if you need anything, or you know something I could add, please tell me how I can add that.
Answer by karl_jones · Jan 21, 2016 at 10:09 PM
Sounds like a bug we fixed in 5.3.1p3
(741751) - UI: Removed remaining uses of multiple display system.(Temporary fix whilst none native resolutions are not supported).
Answer by SterlingSoftworks · Jan 21, 2016 at 06:49 PM
Where are the Anchors for your title screen? If they're in the center of the screen this could be the problem.
Try moving them to the corners or edge centers.
For stuff to provide an easier answer.. A picture of your "Scene" tab with your title element selected would be helpful :)
Well, you might not think it, but in asking me about those anchors, you solved my problem. After messing around with them for a bit, I got everything back in the right place. I do need to figure out how anchors work though, because it sure did take me a long time to get everything back.
Anchors are called "anchors" for a reason! :D
Anchors allow you to.. "Stick" your UI elements to certain parts of the canvas, and the UI elements will move around according to where those anchors are.
So, for example, on Windows Phones you can swipe up from the very bottom and a little bar appears that has the "Back", "Home", and "Search" buttons on it. If you do this during a game, this messes with the screen size being displayed and will mess up your UI elements if they aren't anchored properly. So, if a UI element on the edge of the screen (where this bar is) has it's anchors at the center of the canvas, and a person swipes up, that UI element won't move and will be covered by the bar BECAUSE the UI's position, will ONLY change, when the anchors move. $$anonymous$$oving the anchors to the "middle" of that side fixes this issue. Now that the anchors are moved, when a person swipes up to bring that bar up, the UI element moves x amount based on the anchor position.
Anchors will help you make your UI elements stick to their intended position on multiple aspect ratios as well since when a screen size changes, the edges may change, but the center hasn't been touched yet.
I hope that helps you a little bit with Anchors and don't forget to mark this as answered or closed :)
Your answer