Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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:
    8
  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:
    8
    Oh, that's works fine! Thank You!!
     
    MasterSubby likes this.