Author Topic: How to subscribe method to UIButton notify?  (Read 2575 times)

genesys

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
How to subscribe method to UIButton notify?
« on: March 18, 2014, 07:52:55 PM »
How can I subscribe a callback method to the notification event of a UIButton, but not through the Editor but via scripting?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to subscribe method to UIButton notify?
« Reply #1 on: March 18, 2014, 09:23:42 PM »
EventDelegate.Add(button.onClick, MyFunction);