Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: TOODX on June 19, 2013, 12:20:22 PM

Title: Buttons without hover?
Post by: TOODX on June 19, 2013, 12:20:22 PM
The default button widgets have a hover state applied to their background. If I remove the background from the tween target, nGUI gives me a warning.

 Does this matter? Is there another component I can use to get button click events without the hover requirement? I've commented out the warning so my console doesn't get full of messages, but I want to make sure this is the best practice.
Title: Re: Buttons without hover?
Post by: ArenMook on June 19, 2013, 01:25:03 PM
Why do you need the button component at all then? Anything is clickable as long as there is a collider.
Title: Re: Buttons without hover?
Post by: TOODX on June 19, 2013, 07:35:45 PM
Oh, that's very convenient. I though having the UIButton was what allowed the OnClick. Thanks :D