AnimationGraph
1.4.6+
Wrapper around a native animation graph.
- AnimationGraph
- .setPlaybackSpeed(samplerIndex, speed) ⇒ void
- .toString() ⇒ string
.setPlaybackSpeed(samplerIndex: number, speed: number) ⇒ void
1.5.0+Set the playback speed of a sampler in the graph.
Note: The index of the sampler is the same as the index of the animation in the graph.
Usage
Following example creates a graph with 1D blending, but reuses the forward walk animation as backwards walk by setting the playbackspeed of its sampler to -1.
| Param | Type | Description |
|---|---|---|
| samplerIndex | number | Index of the sampler |
| speed | number | Playback speed to set |