Author Topic: Simple question about UITable  (Read 1445 times)

Tr3s0r

  • Guest
Simple question about UITable
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Simple question about UITable
« Reply #1 on: February 25, 2013, 07:04:32 AM »
When instantiating your buttons, given them a specific name you can use to identify them.

Tr3s0r

  • Guest
Re: Simple question about UITable
« Reply #2 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.