Engine API Reference - v2.6.1
    Preparing search index...

    Class AnimBlendTree

    BlendTrees are used to store and blend multiple AnimNodes together. BlendTrees can be the child of other AnimBlendTrees, in order to create a hierarchy of AnimNodes. It takes a blend type as an argument which defines which function should be used to determine the weights of each of its children, based on the current parameter value.

    Hierarchy (View Summary)

    Index

    Constructors

    Constructors

    • Create a new AnimBlendTree instance.

      Parameters

      • state: AnimState

        The AnimState that this AnimBlendTree belongs to.

      • parent: null | AnimBlendTree

        The parent of the AnimBlendTree. If not null, the AnimNode is stored as part of a AnimBlendTree hierarchy.

      • name: string

        The name of the BlendTree. Used when assigning an AnimTrack to its children.

      • point: number | Vec2

        The coordinate/vector that's used to determine the weight of this node when it's part of an AnimBlendTree.

      • parameters: string[]

        The anim component parameters which are used to calculate the current weights of the blend trees children.

      • children: any[]

        The child nodes that this blend tree should create. Can either be of type AnimNode or BlendTree.

      • syncAnimations: boolean

        If true, the speed of each blended animation will be synchronized.

      • createTree: Function

        Used to create child blend trees of varying types.

      • findParameter: Function

        Used at runtime to get the current parameter values.

      Returns AnimBlendTree