Author Topic: Button OnPress still registering press after scene loaded a second time?  (Read 4592 times)

leagueofmonkeys

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
Hi :)

I have a button in a panel, the panel is disabled via script.  If the user is pressing the buttons when the panel is disabled next time I load the scene and enable the same panel via script the button remains pressed.  All of my gui is destroyed on scene load so I don't understand why the button press persists.  I am using the latest version of NGUI and Unity.

Any help is greatly appreciated :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Button OnPress still registering press after scene loaded a second time?
« Reply #1 on: September 07, 2013, 12:42:26 AM »
Er... what? You go to a different scene, and when you load the original scene again a button is in a pressed state? NGUI won't do that for you.