Author Topic: Application.LoadLevel crash on android  (Read 3613 times)

simon.anderson6

  • Guest
Application.LoadLevel crash on android
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Application.LoadLevel crash on android
« Reply #1 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.