Author Topic: Using EventDelegate in my custom script with method parameter support.  (Read 1842 times)

mcprogramr

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
I applied List<EventDelegate> to my custom script. I have experimented awhile ago with it, and has it working except when my method have parameter, the 'arg' field is disabled.
Why is it disabled?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Using EventDelegate in my custom script with method parameter support.
« Reply #1 on: August 20, 2014, 05:38:13 PM »
Did you create an editor class to it? What did you use to draw the List<EventDelegate>? It should be NGUIEditorTools.DrawEvents.

mcprogramr

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Using EventDelegate in my custom script with method parameter support.
« Reply #2 on: August 21, 2014, 07:08:41 AM »
I tried to create an Editor for it then update with DrawEvents and it worked. Thanks!