Author Topic: 3.0.3c bug?  (Read 1635 times)

JSorrentino

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
3.0.3c bug?
« on: October 28, 2013, 09:35:22 PM »
When I update my atlas by selecting a *.png that's currently in the atlas, then click to update it, it changes all My UITexture widgets to UISprites.

This is quite odd, maybe I am missing something, but this is unexpected behavior.

The UITextures are using a material so that I can batch draw calls, about the only thing changed.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3.0.3c bug?
« Reply #1 on: October 29, 2013, 12:06:09 AM »
It has been like that since 3.0.3. You can create your entire UI using UITextures then select the UIRoot and create an atlas from that, and NGUI will automatically replace all textures with sprites.

When you add a texture to an atlas, all UITextures referencing it get replaced with sprites.

JSorrentino

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: 3.0.3c bug?
« Reply #2 on: October 29, 2013, 12:29:31 AM »
OK, makes sense then.  Can this be selectively turned off selectively?  The reason it's an issue is scrolling UVs on the textures that are being made to sprites.

Thanks again, sorry for being ignorant with latest release notes.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3.0.3c bug?
« Reply #3 on: October 29, 2013, 12:34:44 AM »
You need to name your textures something else then. You're using the same textures as sprites, doesn't it seem odd to you?

JSorrentino

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: 3.0.3c bug?
« Reply #4 on: October 29, 2013, 12:36:01 AM »
Indeed you would be correct.

Thanks again for your time :-)