Support => NGUI 3 Support => Topic started by: Lumind on June 02, 2014, 07:44:26 AM
Title: Access NGUI button's notify(OnClick)
Post by: Lumind on June 02, 2014, 07:44:26 AM
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? And just to be clear - I need to change the button's notify(target), not the function (http://answers.unity3d.com/storage/temp/27086-after1.jpg)
Title: Re: Access NGUI button's notify(OnClick)
Post by: ArenMook on June 02, 2014, 11:03:34 PM
You should not be altering only the target because it's a part of the delegate, which is a combo of object + function name.