Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Shifty Geezer on January 08, 2017, 11:49:08 AM

Title: Cannot add delegate to slider onChange
Post by: Shifty Geezer on January 08, 2017, 11:49:08 AM
I can add a delegate via code to a slider for its Finished event thusly...

slider.onDragFinished = CallbackMethod;

However, the same doesn't work for onChange event and the description for onChange specifies it as a list rather than a delegate. How do I add a delegate on onChange?
Title: Re: Cannot add delegate to slider onChange
Post by: ArenMook on January 08, 2017, 03:02:47 PM
EventDelegate.Add(slider.onChange, YourDelegate);