Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: turkeypotpie on June 22, 2014, 09:01:51 PM

Title: Press event not registering when alpha is zero
Post by: turkeypotpie on June 22, 2014, 09:01:51 PM
I have a background sprite with a collider attached that fills the entire screen.

If I click on it, I correctly receive the OnPress event.

However, if I set the sprite's alpha to zero, I no longer receive the press event.  What would cause this?
Title: Re: Press event not registering when alpha is zero
Post by: ArenMook on June 22, 2014, 11:48:26 PM
When the sprite's alpha is zero, it can no longer capture events because it's effectively hidden.

If you want an invisible area that's capable of capturing events, use a widget instead (ALT+SHIFT+W).
Title: Re: Press event not registering when alpha is zero
Post by: turkeypotpie on June 22, 2014, 11:55:54 PM
Cool.  Thanks for the help.