Hello Guest

Author Topic: Two button on same place  (Read 4132 times)

camelot10

  • Newbie
  • *
  • Posts: 24
    • View Profile
Two button on same place
« on: August 02, 2012, 03:46:18 pm »
i have two buttons.
Button A activates button B.
button B appear on same coordinates (x,y) but with lower z.
Button B box collider greater that button A collider.
When i hit button B, button A also activated.

how i can stop click event or block it activation of button A when i click on button B?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Two button on same place
« Reply #1 on: August 02, 2012, 06:23:01 pm »
Perhaps they are too close to one another? I just tested this now in sample 6 by moving one of the buttons in front of the other and rotating it - I can only click one of them. Also this was added in a fairly new version of 2D Toolkit, so make sure you're on an up to date version...

camelot10

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Two button on same place
« Reply #2 on: August 03, 2012, 02:42:19 pm »
oh sorry. you right.
both buttons overlaped.