Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Sarper on June 02, 2015, 07:12:45 PM

Title: Disabling Interaction While Tweening
Post by: Sarper on June 02, 2015, 07:12:45 PM
I want to use position tweens for the transitions between my panels but I want it so that player won't be able to interact with any UI element while the position tween is playing.

Does NGUI have any utility to handle that or do I disable every element's collider for example wherever I call the PlayForward() and re-enable them on OnFinished?
Title: Re: Disabling Interaction While Tweening
Post by: ArenMook on June 07, 2015, 12:26:05 PM
Easiest thing to do is to create a panel with higher depth than other panels, then place a full-screen widget underneath it with a collider (ALT+SHIFT+W, ALT+SHIFT+C). It will intercept all events. Either that, or turn off events on the UICamera.
Title: Re: Disabling Interaction While Tweening
Post by: Sarper on June 17, 2015, 02:17:56 AM
Easiest thing to do is to create a panel with higher depth than other panels, then place a full-screen widget underneath it with a collider (ALT+SHIFT+W, ALT+SHIFT+C). It will intercept all events. Either that, or turn off events on the UICamera.

Thanks, will keep those in mind. I've ended up changing the state of all the buttons, I wanted to show their disabled color too.