Author Topic: Errors after updating NGUI in my project through the asset store  (Read 1880 times)

Zophiel

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 54
    • View Profile
Hello,

I updated my NGUI scripts through the asset store and I am now getting the following error after i stop playing a scene in the editor: Scene is being destroyed while there are hidden renderers that are using it. This is likely an editor script creating objects with hideFlags and leaving them enabled.

I've also set up 4 sprites, who's spriteName i change through code but for some mystical reason the old sprite doesnt seem to disappear anymore. Prior it would update fine.

[Edit] after some toggling some things on and off it almost looks as if NGUI is caching the graphics or something silly. I toggle off a huge part of the UI and then on play, as if by magic, that part of the ui shows up again. But i can't select it in the editor.

[Edit 2] Turning more things off and deleting things while running it left something like a cached image that i couldnt select. It was even there after deleting everything in the scene which led me to assume it was a Unity error of some kind. A quick restart seems to have cleared it up.

When in doubt, reboot.
« Last Edit: March 22, 2013, 07:17:14 AM by Zophiel »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Errors after updating NGUI in my project through the asset store
« Reply #1 on: March 22, 2013, 08:15:14 AM »
This is because you didn't update as you're supposed to. You likely had a scene with NGUI stuff open while updating then this happens almost each time. Then it tends to lose the references to the UIDrawcall objects and leave them hanging around.

A unity restart fixes it.

Future use: follow the recommended steps when updating.