Sorry to drag up an old post, thanks for a great plugin.
I have been beating my head against a wall trying different methods to do tabs and I concluded that the above would be the way I needed to do it but it leads me to a question I cannot find the answer:
How the heck do you disable a panel? I know its got to be easy as pie and Im just over looking probably a native function to unity.
public GameObject ButtonActivates;
private GameObject[] list;
void OnClick() {
if (list==null) GameObject.FindGameObjectsWithTag("PanelObject");
foreach (GameObject target in list)
{
//NGUITools.SetActive(target, false);
//NGUITools.SetLayer(target, 0);
//target.SetActive(false);
}
//NGUITools.SetActive(ButtonActivates, true);
//NGUITools.SetLayer(ButtonActivates,1);
//ButtonActivates.SetActive(true);
}
I commented out the things I DID try before I found this posting.