Reply To: Animation Best Practices

Forums 💬 NodeCanvas 🗨️ General Discussion Animation Best Practices Reply To: Animation Best Practices

#13914
Gavalakis
Keymaster

    Hello,

    Another way, would be to select the “SendEvent” function for the target function to be called by the Animation Event in it’s inspector and give it a name:
    [attachment file=”AnimationEvent.png”]

    Then within NodeCanvas graph, you can use the existing “Check Event” condition, and set the event name to be the same as the one you set in the inspector above (in this case, “MyEventName”).
    [attachment file=”AnimationEvent2.png”]

    As such, whenever the Animation Event is encountered, a NodeCanvas event named “MyEventName” will be send to the owner graph and the “Check Event” condition will return true for that same frame, thus “OK” will be logged for the above example.

    Let me know if you need more clarification on this.
    Cheers.