Author Topic: Added new atlas and then all existing GUIs messed up  (Read 9952 times)

kruncher

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Added new atlas and then all existing GUIs messed up
« on: December 06, 2013, 12:48:27 PM »
I added a new atlas using the atlas creator, and then the depth for every single GUI component in every single scene completely messed up.

Is there a quick fix or have I got to go through and spend hours correcting this?

kruncher

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Added new atlas and then all existing GUIs messed up
« Reply #1 on: December 06, 2013, 12:54:15 PM »
Never mind, it looks like the following happened:

1. I created a new atlas using the atlas creator.
2. Added some sprites to it (another atlas broke).
3. Created some controls in scene (new atlas worked as normal).
4. An existing atlas texture had been renamed to " ".
5. The associated material was no longer associated with texture (from 4.).
6. Prefab was no longer associated with material (from 5.).

Before creating the new atlas, the atlas which broke was previously selected inside the atlas creator interface.

This is a bug, but I have managed to correct the breakage :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Added new atlas and then all existing GUIs messed up
« Reply #2 on: December 06, 2013, 02:26:45 PM »
In which version of NGUI did this occur?

kruncher

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Added new atlas and then all existing GUIs messed up
« Reply #3 on: December 06, 2013, 02:44:33 PM »
The current asset store version 3.0.6f7.

I also notice that the texture for my broken atlas reverted back to having "Generate Mip Maps" selected which was causing some odd darkening to occur. (I verified with against a backup of this project).

maaya

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Added new atlas and then all existing GUIs messed up
« Reply #4 on: June 20, 2016, 08:45:10 PM »
Before creating the new atlas, the atlas which broke was previously selected inside the atlas creator interface.

This is a bug, but I have managed to correct the breakage :)

Can you please elaborate how you corrected the breakage? The same sequence of events happened with my Unity project and I tried clearing the Library and Temp files and re-imported all the assets.
Git shows no changes to the Atlas files but Unity is not reading the Atlas correctly. The images in "View Sprites" are all messed up  :-[

NGUI Version: 3.4.9

TIA!

kruncher

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Added new atlas and then all existing GUIs messed up
« Reply #5 on: June 21, 2016, 05:16:04 AM »
Can you please elaborate how you corrected the breakage? The same sequence of events happened with my Unity project and I tried clearing the Library and Temp files and re-imported all the assets.
Git shows no changes to the Atlas files but Unity is not reading the Atlas correctly. The images in "View Sprites" are all messed up  :-[
It was quite a while ago; but if I recall, what I did was reset the broken parts to my last git commit to repair them.