Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: rhalferty on January 20, 2016, 10:14:26 AM
-
Unity 5.2.1
NGUI 3.9.4
I am having issues with a full screen background image becoming distorted when I push my build to either the ios simulator or an actual iPad device. The image is 800x600. I've tried a flexible screen and constrained on mobile, both have the same issue. Image attached. The top of the screen gets stretched as opposed to flexing the whole image. It works fine in the Unity window. I get a similar issue with a UI Table and a set of sprites.
Any help or thoughts would be appreciated.
-
If you've chosen the image to be compressed, which is the default Unity option, then Unity will force its dimensions to be power-of-two. 800x600 is not, so it will make it 1024x512, or maybe even 1024x1024, depending on the compression format. Either turn off compression, or use power-of-two texture sizes.
-
I can confirm the power of 2 being a complication. I edited the image to be 1024x1024 and it does not distort any longer.
The other solution I've found is related to the mip mapping. When turned off this is no longer an issue.