Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Tr3s0r on February 25, 2013, 05:23:54 AM

Title: Simple question about UITable
Post by: Tr3s0r on February 25, 2013, 05:23:54 AM
hello everyone,

i'm new at using NGUI, and this is my first post so excuse me if im asking something basic or pretty obvious.
I have a small problem, i have created a UITable, and i can add several elements, my problem is that im using rows that have several buttons, all of them and contained in a prefab,
of curse these buttons call a function on a script, so my question is, how do i know which row(prefab) has clicked on the button?

Best Regards
Title: Re: Simple question about UITable
Post by: ArenMook on February 25, 2013, 07:04:32 AM
When instantiating your buttons, given them a specific name you can use to identify them.
Title: Re: Simple question about UITable
Post by: Tr3s0r on February 25, 2013, 07:47:41 AM
Many thanks for your fast and straightforward answer, that's really simple  :D, why it didn't came up to my mind ???!!! oh dear me....
Most be "Monday's", i can now go on with my work 8)
by the way, this is the best plug-in ever <3.

Best Regards.