Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chad Goodson on August 15, 2013, 02:00:34 PM

Title: Button activates under sprite
Post by: Chad Goodson on August 15, 2013, 02:00:34 PM
I have a simple setup where a button is setup with the ButtonPlayAnimation  attached. The script prompts a sprite with a label, to animate onto the screen thus covering the original button. The problem is that I can still interact with the original button through the sprite. The result is that the animation replays(an abrupt effect). How can I make it so the original button is no longer accessible once it has been covered by the sprite screen?
Thank you.
Title: Re: Button activates under sprite
Post by: Narv on August 15, 2013, 03:10:07 PM
you can add a box collider to the sprite.  That is what I did when I had a popup in my settings menu.. so that you couldn't interact with the buttons behind it, I just put a collider box on the background sprite of the popup.
Title: Re: Button activates under sprite
Post by: Nicki on August 15, 2013, 06:06:10 PM
Touches only interact with colliders. It doesn't matter how many labels or widgets are on top of it, if there's no collider blocking.