Description
The Cancel
method is used to stop the playback of the current animation sequence that is being overridden. This method is part of the AnimGraphDirectPlayback
class, which facilitates direct communication with an animation node to control sequence playback.
Usage
To use the Cancel
method, you must have an instance of the AnimGraphDirectPlayback
class. Once you have initiated playback of a sequence using the Play
method, you can call Cancel
to stop the sequence at any time.
Example
// Assuming animGraph is an instance of AnimGraphDirectPlayback
animGraph.Cancel();
// This will stop the currently playing animation sequence.