Author Topic: UITexture not rendering always  (Read 2857 times)

pgloob

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UITexture not rendering always
« on: June 04, 2015, 09:52:51 AM »
I am working on an app which is used for customization of various objects. For each of these objects there are hundreds of texture which could be possibly applied on it.
I am using a grid under a scrollview to display them. Each of the texture is placed under a sprite object. So overall the hierarchy looks like this-

Scrollview
-Grid
--Sprite
---UITexture
--Sprite
---UITexture
--Sprite
---UITexture...and so on.

Now the problem I am facing is that the textures get displayed sometimes but not always in the game scene. However when I am checking in the scene view they are present.
Please help me with this. I am using NGUI 3.6.9 and Unity 5.0.2.
I have attached an image of the problem.

Thanks in advance!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture not rendering always
« Reply #1 on: June 07, 2015, 12:44:30 PM »
Your NGUI is extremely old, so I can't suggest much aside from updating to the latest.

Also I don't recommend you having all those textures there. Use an endless scroll view instead and recycle UITexture objects, reloading the actual 2D textures as needed. This way you won't have hundreds of textures, but only a handful.