Author Topic: UITexture image is being displayed blank screen in android mobile.  (Read 2231 times)

ysrikanth2011

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Hi ,

I have created a large image as an UITexture instead of the adding it to the atlas, I have created as NGUI->Create->Texture.
The image is being displayed well in unity editor but when deployed to mobile displays a black screen . why is this happening .

Also I have seen some sprites that are added to atlas and then created have a line of white colour , near them , I think these are created as I have scaled down largely like 0.1 . All the images I have imported into NGUI displayed as very large images why is this happening ? Any ways to resolve this issue .

Thanks in Advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture image is being displayed blank screen in android mobile.
« Reply #1 on: May 06, 2014, 09:42:15 PM »
Many mobile devices require the image to be of limited dimensions (2048x2048 on most, 1024x1024 on older devices), power-of-two in size, and if you use compression, the image must be square for PVRTC. Black means the texture is not usable on the device.

What do you mean by "very large images"? Whatever the size of the texture you imported will be the size of the sprite when added to the atlas. So if the source texture is 2500x2500, that's what you will see in NGUI as well.