Author Topic: Black NGUI textures  (Read 4708 times)

dlamarre181

  • Guest
Black NGUI textures
« on: August 14, 2013, 04:27:05 PM »
Hi,

We are having an intermittent issue on Unity Android: from time to time when running on various devices, all NGUI elements on screen will appear as opaque rectangular areas. The buttons and other UI widgets remain useable although they are displayed all black. The only way to get rid of the black areas is to restart the app. All other Game Objects are displayed properly when the bug occurs.

The first time we have seen this was when we ran the game with Unity 4.2 (not sure if the bug is related to that specific version of Unity). There are important bug fixes in Unity 4.2 for the eclipse export that prevent us from using an older version. We have been using NGUI on Android on various projects in the past and it's the first time we are seeing this.

I haven't found any reference to a bug like this on the forum or anywhere else. We are using NGUI 2.6.1e at present.

Thanks,

Narv

  • Guest
Re: Black NGUI textures
« Reply #1 on: August 14, 2013, 05:44:06 PM »
I am having a similar issue. The found that I got the issue when I added new images to an atlas that it would then go black (doesn't always happen).  I ended up taking out the background sprite and built for android and it worked, so I went ahead and made the background sprite a UITexture instead of a UISprite and that is how it's working for me now and I haven't had any problems with it for awhile.  This happened to me while I was using Unity 4.1 and again in 4.2.  Using NGUI 2.5.1

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Black NGUI textures
« Reply #2 on: August 15, 2013, 07:11:22 AM »
Black atlas = texture has exceeded device's limits. For example, trying to use a 2048x2048 atlas on an iPhone 3G which only supports 1024x1024 max.

Latest version of NGUI won't even let you exceed this limit when creating an atlas.