Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: kababyenoh on September 16, 2012, 10:02:32 PM

Title: NGUI Textures Not Loading Properly
Post by: kababyenoh 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)

(http://i1109.photobucket.com/albums/h426/kababyenoh/Messy01.jpg)

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
Title: Re: NGUI Textures Not Loading Properly
Post by: ArenMook 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.
Title: Re: NGUI Textures Not Loading Properly
Post by: kababyenoh 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
Title: Re: NGUI Textures Not Loading Properly
Post by: ArenMook 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. :)
Title: Re: NGUI Textures Not Loading Properly
Post by: kababyenoh 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