Author Topic: NGUI Textures Not Loading Properly  (Read 3588 times)

kababyenoh

  • Guest
NGUI Textures Not Loading Properly
« on: September 16, 2012, 10:02:32 PM »
Hello Everyone,

I'm having a problem where every time I have assets such as prefabs+NGUI atlases exported to other people, the textures would be out of place and broken (See image)



One temporary solution was that I simply find the source textures and simply update and then the atlas would be come normal again.

How should I go about fixing this?

Anyone else have this problem?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Textures Not Loading Properly
« Reply #1 on: September 16, 2012, 11:32:45 PM »
You need to save before exporting the package. Unity doesn't save anything for you. In fact, you need to save after every single modification to the atlas, or things get wonky.

kababyenoh

  • Guest
Re: NGUI Textures Not Loading Properly
« Reply #2 on: September 17, 2012, 12:49:54 AM »
Hi ArenMook,

Do you mean saving the scene? Or is there a way to save the Atlas when I make changes to it?

So far every time I update or add new content to the atlases, I just update and leave it at that.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Textures Not Loading Properly
« Reply #3 on: September 17, 2012, 03:28:51 AM »
Yea, save the scene after every single change to the atlas. It breaks otherwise. It's one of those odd things in Unity I've come across, and I don't know a way to force a save via a script. If you find one, just let me know. :)

kababyenoh

  • Guest
Re: NGUI Textures Not Loading Properly
« Reply #4 on: September 17, 2012, 05:21:03 AM »
Ah, OK.

I'll just make sure I do it more often and be careful with it.

Thank You