Support => NGUI 3 Support => Topic started by: vidjogamer on May 27, 2014, 04:45:48 PM
Title: Programatically set NGUI events.
Post by: vidjogamer on May 27, 2014, 04:45:48 PM
Hello, I want to instantiate a some of your built in prefabs like the simple control button, then set its on click to a function of my choice. How does one do this via code?
Title: Re: Programatically set NGUI events.
Post by: Nicki on May 28, 2014, 04:04:04 AM
UIButton has a public list of EventDelegates
public List<EventDelegate> onClick =new List<EventDelegate>();