Search Unity

Resolved Can not run a graph and trigger event form C#

Discussion in 'Visual Scripting' started by Ca2didi, Jul 4, 2021.

  1. Ca2didi

    Ca2didi

    Joined:
    Sep 8, 2019
    Posts:
    16
  2. MasterSubby

    MasterSubby

    Joined:
    Sep 5, 2012
    Posts:
    252
    "test" isn't your event name on the custom event, it's "Custom", the hook for Custom Events Unit itself. "test" should be placed in the new CustomEventsArg as a parameter for the constructor. The second overload is the event name as the first parameter. Should work if you do those things.
     
  3. Ca2didi

    Ca2didi

    Joined:
    Sep 8, 2019
    Posts:
    16
    Oh, that's works fine! Thank You!!
     
    MasterSubby likes this.