Author Topic: Hit boxes on buttons way off  (Read 2185 times)

hankthewhale

  • Guest
Hit boxes on buttons way off
« on: October 04, 2012, 09:52:43 AM »
Sorry for all the posts but this is my first time through NGUI so I'm going to have a bunch of questions.

As of right now, my button hit boxes are off or non-existent. When I go to click on a button, sometimes the button next to it plays the hover scale animation. Other times, nothing happens. My buttons are not over-lapping and have plenty of space between them so I have no idea why this is happening.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Hit boxes on buttons way off
« Reply #1 on: October 04, 2012, 10:36:56 AM »
Did you resize the sprites at any point? After doing that you need to update the collider. Select the game object where the collider resides and either hit Alt+Shift+C or do NGUI menu -> Add Collider.

hankthewhale

  • Guest
Re: Hit boxes on buttons way off
« Reply #2 on: October 04, 2012, 11:28:31 AM »
That did it. Thanks!