Author Topic: Clipped buttons and Colliders  (Read 4860 times)

nopecio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
Clipped buttons and Colliders
« on: November 08, 2012, 04:06:05 PM »
Hi,
i found that my buttons are still sending OnClick messages when they are clipped out in a scrollable panel (they are not visible, out of the clipping area).
is there any way to prevent this, and somehow ignore events (particularly collider related ones) when the button is clipped out?
Thanks and regards

dlewis

  • Guest
Re: Clipped buttons and Colliders
« Reply #1 on: November 08, 2012, 06:05:23 PM »
Place colliders (on empty game objects) in the clipped area and make sure the colliders are in front of the clipped buttons

nopecio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
Re: Clipped buttons and Colliders
« Reply #2 on: November 08, 2012, 06:32:27 PM »
Clever, thanks i'll give it a try

dlewis

  • Guest
Re: Clipped buttons and Colliders
« Reply #3 on: November 08, 2012, 07:26:44 PM »
Example 7 uses this technique, look at that if you need to.