Lumind
1
In old NGUI version I had UIButtonMessage script on my button. Button’s target was changeable - when I clicked on some object, it became the button’s target. But now I try to access NGUI button Notify when OnClick. I haven’t found it in button’s script, so how can I change the button’s Notify (OnClick) through my script?
You could use the UIEventListener.cs
Event Hook class lets you easily add remote event listener functions to an object.
Example usage: UIEventListener.Get(gameObject).onClick += MyClickFunction;