Description
The StartTime
property of the AnimGraphDirectPlayback
class is used to set the time at which the currently playing sequence should have had a cycle of zero. This effectively adjusts the current cycle of the sequence to match the specified start time.
Usage
To use the StartTime
property, you can set it to a float
value representing the desired start time in seconds. This will modify the playback cycle of the current animation sequence to align with the specified start time.
Example
// Example of setting the StartTime property
AnimGraphDirectPlayback playback = new AnimGraphDirectPlayback();
playback.StartTime = 1.5f; // Sets the start time to 1.5 seconds