Hi,
I'm creating about 8 tabs, and attaching the UIToggle script to each one. That part is great, but I'm not sure what the best way is to trigger script methods from them.
My instinct would have been to have all my tabs call the same method on value change ("onTabClick"), and then somehow check which tab made the call and perform the appropriate action. I don't see any way to do that, since I can't pass the tab GameObject as a parameter or anything.
Alternately, I could actually create 8 methods in my script, but then updating my tab prefab would reset which method they all call in the editor and force me to set each tab to the corresponding 8 methods each time I change the prefab.
Not sure if this makes total sense, but any advice on triggering actions from tabs or groups of buttons without creating a whole bunch of methods or having to do a lot of Unity Editor legwork would be appreciated!
Thanks, and I'm a big NGUI fan btw!
-Travis