Engine API Reference
    Preparing search index...

    Class Animation

    An animation is a sequence of keyframe arrays which map to the nodes of a skeletal hierarchy. It controls how the nodes of the hierarchy are transformed over time.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    duration: number = 0

    Duration of the animation in seconds.

    name: string = ''

    Human-readable name of the animation.

    Accessors

    • get nodes(): Node[]

      A read-only property to get array of animation nodes.

      Returns Node[]

    Methods

    • Adds a node to the internal nodes array.

      Parameters

      • node: Node

        The node to add.

      Returns void

    • Gets a Node by name.

      Parameters

      • name: string

        The name of the Node.

      Returns Node

      The Node with the specified name.