Author Topic: Cannot add delegate to slider onChange  (Read 192 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 221
    • View Profile
Cannot add delegate to slider onChange
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 316
  • -Receive: 1149
  • Posts: 22,027
  • Toronto, Canada
    • View Profile
Re: Cannot add delegate to slider onChange
« Reply #1 on: January 08, 2017, 03:02:47 PM »
EventDelegate.Add(slider.onChange, YourDelegate);