Hi,
I create prefab contain Panel with one toggle.
The toggle notify a public method :
public void toggleTest()
{
Debug.Log ("Click on toggle");
}
When i instantiate the prefab, the toggleTest method is called !
void Start ()
{
NGUITools.AddChild (nguiCamera.gameObject, panelWithTogglePrefab);
}
I use last version of NGUI
What the problem ?
Thank,
Laurent