Author Topic: How can i know which button ID on the scroll view with multi buttons inside  (Read 3995 times)

baby_demon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Base on Example #7 - Scroll View (Panel)
How can i determine which Item in the UIGrid when i Click an item.
I want to to destroy item when i click on it.

Cripple

  • TNP Alpha
  • Full Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 117
    • View Profile
How about making your item a button ?
Graphicstream Dev.

baby_demon

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
thank you.
This works for me.
I actually need transparent all others buttons except the button which clicked.

Cripple

  • TNP Alpha
  • Full Member
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 117
    • View Profile
Btw you don't have to make the item especially a button, you just need to add a Collider to it and override the functions : http://www.tasharen.com/?page_id=160
Graphicstream Dev.