Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: simon.anderson6 on July 04, 2013, 01:31:03 AM

Title: Application.LoadLevel crash on android
Post by: simon.anderson6 on July 04, 2013, 01:31:03 AM
Hi there,

Everytime I attempt to call Application.Loadlevel() unity seems to crash.  I've tracked it down to the fact that I have a confirm ok/cancel panel overlayed on top of a main gui panel underneath.  When OK is clicked that's when I make the call to LoadLevel().

If I disable the ok/cancel panel before loading the next level everything works ok.

Any ideas/help would be appreciated.

Cheers,
Simon
Title: Re: Application.LoadLevel crash on android
Post by: ArenMook on July 04, 2013, 08:26:09 AM
I'd need more information than that. Does your overlay panel have a big collider intercepting the event from hitting what's behind it? Do you have something in the background not using NGUI events, instead relying on Input or OnMouseXXX events? Loading a level in OnClick is a trivial matter, and NGUI even comes with an example script that does just that -- LoadLevelOnClick.