Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: baby_demon on January 08, 2013, 04:01:17 AM

Title: How can i know which button ID on the scroll view with multi buttons inside
Post by: baby_demon on January 08, 2013, 04:01:17 AM
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.
Title: Re: How can i know which button ID on the scroll view with multi buttons inside
Post by: Cripple on January 08, 2013, 04:26:11 AM
How about making your item a button ?
Title: Re: How can i know which button ID on the scroll view with multi buttons inside
Post by: baby_demon on January 09, 2013, 02:48:18 AM
thank you.
This works for me.
I actually need transparent all others buttons except the button which clicked.
Title: Re: How can i know which button ID on the scroll view with multi buttons inside
Post by: Cripple on January 09, 2013, 04:19:42 AM
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