Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: leagueofmonkeys on September 05, 2013, 04:43:06 AM

Title: Button OnPress still registering press after scene loaded a second time?
Post by: leagueofmonkeys on September 05, 2013, 04:43:06 AM
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 :)
Title: Re: Button OnPress still registering press after scene loaded a second time?
Post by: ArenMook 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.