- Home /
Canvas' changing position and size after exporting to iOS, any ideas?
Basically I have at the beginning of my game, a small set of tutorial prompts pop up so you know how to play. It all works fine in the editor, I've used canvas scaler and the anchors are correct but for some reason, once I export the game to iOS these tutorial prompts end up all over the place.
Its like its ignoring the canvas scaler and doing whatever it likes. I've checked the reference resolution and its correct. I've tried seeing if people have had the same issue but have had no luck.
Cheers guys!
Answer by SnStarr · Jan 10, 2015 at 06:47 AM
If the scaler of the canvas and its anchors are in the right place, only thing I can think of doing, is writing a script for the UI elements and forcing them into an aspect ratio of your choosing. Find the aspect ratio best for you and the devices your building to, setup the UI elements using that and then write the script to force them to always take on that aspect ratio when game starts
Solved it, it was because i swapped the PNGs over and it turned out they were different resolutions and Unity ended up trying improvise everything on its own! Thanks for the help!
Your answer