Manage your cookie settings. You can enable or disable different types of cookies below. For more details, see our Privacy Policy.

AnimationGraphManager

1.5.0+

Manage animation graphs.

Creation 

Creating an animation graph with a one dimensional blend tree is done using blend1D

.constructor(scene: Prefab) ⇒ AnimationGraphManager 

ParamTypeDescription
scenePrefab

.blend1D(anims: Animation[]) ⇒ AnimationGraph 

Generate an animation graph that blends between a list of animation in 1 dimension.

Usage 

1const graph = engine.animationsGraphs.blend1D([idle, walk, run]);
2object.getComponent(AnimationComponent).animation = graph;

Note: All animations must have the same number of tracks and only the first animation has to be retargeted to the object/skin.

Returns: The new animation graph.

ParamTypeDescription
animsAnimation[]Array of anims to blend.