Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: wallabie on March 29, 2014, 07:56:49 AM
-
I have the following code:
EventDelegate.Add(popup.onChange,onPopupChanged,false);
public void onPopupChanged()
{
Debug.Log("onChanged callled");
}
1. In the onPopupChanged(), I would like to get the reference to the popup Go.
2. Is there a way to send some parameters to the call back function when the onChange happens ?
Perhaps this is not a proper use of EventDelegate. So my question is how can I achieve the above 2 items when the popupList changes.
-
In 3.5.6: https://www.youtube.com/watch?v=K3lvXIvJFKc&list=UUQGZdUwzE8gmvgjomZSNFJg
Currently UIPopupList.current tells you who triggered the event, letting you do whatever you wish from there. It's always ".current" with NGUI. UIButton.current, UICamera.current, UIToggle.current, etc.