Author Topic: NGui: upgrade from 2.7 to 3.08f3 crashes on upgrading atlas  (Read 1436 times)


  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
NGui: upgrade from 2.7 to 3.08f3 crashes on upgrading atlas
« on: January 02, 2014, 02:59:36 PM »
Unity: 4.2.1f4
Win 7/64 bit
NGui Standard

I upgraded my 2.2.6c project to 2.7 without any issues.  Everything was working pretty much the same after the upgrade with the exception of a few depth sorting issues which I deferred until I had upgraded to 3.x.

Upgraded to 3.08f3 with the instructions - creating a new scene, deleting ngui, importing ngui, fixed the compile errors, and then ran the upgrade package to install the editor scripts.

After this I tried to bring up my core menu scene which contains most of the menus in a deactivated state, and Unity crashes.  Unfortunately I don't have the log anymore as I was able to get the scene to come up successfully later (more on this below).

I know the call died in UIAtlas:Upgrade on the line: UnityEditor.AssetDatabase.SaveAssets();

I started binary searching and have found that if I delete all the atlases (your four example ones plus the two custom ones I had made), the scene comes up properly after that, albeit with broken references to the removed atlases of course.

I would very much like to not have to rebuild and re-reference these atlases - so I guess my next step will be to repeat until I know which atlas(s) is potentially causing the problem and then only delete that atlas to minimize rebuilding.

I'm guessing there is just no enough repro info here to really have any idea what is going on.  Just a shot in the dark..


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGui: upgrade from 2.7 to 3.08f3 crashes on upgrading atlas
« Reply #1 on: January 03, 2014, 03:47:35 AM »
Do you use some versioning system that locks files in a read-only state?

NGUI 3 does need to upgrade atlases as a part of its upgrade process. Make sure that all your prefabs and disabled objects are brought into the scene and enabled in order for the upgrade process to take effect.