Description
The Play
method in the AnimGraphDirectPlayback
class is used to initiate the playback of a specified animation sequence. This method is virtual, allowing derived classes to override its behavior if necessary. The method requires the name of the sequence to be played as a parameter.
Usage
To use the Play
method, you need to provide the name of the sequence you wish to play. This name should correspond to one of the sequences available in the Sequences
property of the AnimGraphDirectPlayback
class.
Example usage:
AnimGraphDirectPlayback animPlayback = new AnimGraphDirectPlayback();
animPlayback.Play("RunSequence");
Ensure that the sequence name provided is valid and exists within the available sequences to avoid runtime errors.
Example
AnimGraphDirectPlayback animPlayback = new AnimGraphDirectPlayback();
animPlayback.Play("RunSequence");