Hi!
First, Thank you for making NGUI, i bought it one month ago and i must say that i love it.
I have a problem when i want to add a parameter by code to a trigger event.
UIEventTrigger trigger = myCustomGameObject.AddComponent<UIEventTrigger>();
EventDelegate.Add(trigger.onPress, OnSelect);
public void OnSelect( GameObject go )
{
Debug.Log(go);
}
I can make it work without parameters, but how would i add the game object parameter inside the Event Delegate ?
On the editor, args 0 appear, so i can drag and drop the desired gameobject.
I just would like to do that by code.
Any hint would be very appreciated.
Best regards.