- Home /
Help with broken UI on export
I'm having a big issue with the UI, on all Android devices/PC export the UI is normal. But when exporting the game to IOS and installing it onto the iPhone 6 using Xcode, the UI is broken across the whole game.
Any help into fixing this issue would be appreciated, Thank you!
Below is a screen shot of the UI working when on Android and when the game has been installed not working on iPhone 6:
This looks a bit similar to something I sometimes have in the Editor, I don't know if it is related (sinse I don't build for IOS) but I think it might be worth a shot sinse it is easy to check.
I sometimes have the problem that all images which have their sprite set to null, get the wrong sprite assigned to them. In your case this looks similar, sinse only the squares are bugged out which probably don't have a sprite set in the inspector. I fixed this by creating a 1x1 white pixel sprite and assign that one ins$$anonymous$$d in the inspector....
Thanks for that! I will try it out and let you know what my results are.
@troien I have just reassigned the ui buttons and ui elements which did not have a sprite, with the 1x1 square sprite method like you suggested and it fixed all the issues!
Thanks
Answer by BenAshleyTucker · Apr 10, 2016 at 12:01 PM
The best way to fix this issue is to assign a small 1x1 square sprite to UI buttons, panels and other basic ui elements which do not have a sprite already assigned. This was solved by @troien