Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: bach on August 21, 2014, 08:09:54 AM
-
I need to setup an invisible UIButton that when pressed,
I display a sprite to show that it's been touched.
When I set the Alpha to 0 in Colors > Normal
The click event no longer fires.
Is there a way to have the
Normal Sprite transparent
Pressed Sprite Visible
and still have the Click event firing?
thanks
-
Set alpha to 1, it won't be visible but it will work :)
-
alpha == .001 should still fire event and be invisible
-
Oh correct, I forgot alpha is from 0 - 1.. I am used to 0 - 255
-
Thanks guys, you're both right.
In my case i have set the Alpha for the Normal Color to 1 (hex color)
that made it invisible and still picked up the touch. Thanks for the tip
For the pressed State I kept it's Color Alpha to 255
works great thanks again!