Author Topic: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.  (Read 3115 times)

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
So after I upgraded to 3.0.6 - I "accidentally" opened an old atlas (created in 2.6.4) - Now I'm stuck with a broken atlas maker (See attachment), since now NGUI "remembers" stuff - Closing/Reopening Unity won't fix it - NOR does removing and re-importing NGUI!!

I'm now stuck with a broken atlas maker - I can't do anything.

What can be done about this? - Where does NGUI "remember" stuff? Is there a clear cache button or some cache some where that I could erase?

@Aren please this problem has been around for a while now and I know I'm not the first one to come across it.

(For the future: Please consider removing the atlas thing all together, or at least, make it transparent user-wise)

Thanks.

EDIT: Just read you patched it - well, it's still there it seems.

EDIT: Check out the attachment, for the latest full screen version of the bug :D - I can't minimize, nor do anything but stare at it. (Happens automatically when opening the AtlasMaker)
« Last Edit: November 28, 2013, 01:21:32 AM by vexe »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #1 on: November 28, 2013, 01:03:36 AM »
That's pretty epic and I wonder what happened there. Which line is it breaking out on? Sounds like you should add some null check in there. I've never seen it break like that.

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #2 on: November 28, 2013, 01:14:23 AM »
Very epic indeed - It's now full screen (see updated attachment) - I can't minimize/close it to see the error - I can't seem to use NGUI anymore :D - Since this keeps happening no matter what I do (remove/reimport NGUI, restart Unity etc)

Please tell me there's a way to make NGUI FORGETS - like it REMEMBERS.

Where is this memorizing data kept?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #3 on: November 28, 2013, 01:18:59 AM »
You can right-click the tab and choose to Close it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #4 on: November 28, 2013, 01:19:36 AM »
To clear what NGUI remembers, use:
  1. UnityEditor.EditorPrefs.DeleteAll();

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #5 on: November 28, 2013, 01:21:10 AM »
Alright I uploaded a shot of the error - check it out!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #6 on: November 28, 2013, 01:44:59 AM »
Unfortunately our line numbers don't match. I'm guessing you're not on f5?

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #7 on: November 28, 2013, 01:46:45 AM »
Guess not.

line 402 says: Texture tex = material.mainTexture;
line 250: if (mSprites.Count == 0) Upgrade();


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlases eternal doom. UIAtlas is not found, AtlasMaker is broken.
« Reply #8 on: November 28, 2013, 01:48:29 AM »
I'll add a !material check in there to make sure this doesn't happen in the future. Thanks!