Author Topic: Buttons without hover?  (Read 3248 times)

TOODX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Buttons without hover?
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Buttons without hover?
« Reply #1 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.

TOODX

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Buttons without hover?
« Reply #2 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