Engine API Reference - v2.20.0-beta.0
    Preparing search index...

    Class Animation

    An Animation contains the data that defines how a Skeleton animates over time. The Animation contains an array of AnimationNodes, where each AnimationNode targets a specific GraphNode referenced by a Skeleton.

    An Animation can be played back by an AnimationComponent.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Create a new Animation instance.

      Returns Animation

    Properties

    duration: number = 0

    Duration of the animation in seconds.

    name: string = ''

    Human-readable name of the animation.

    Accessors

    • get nodes(): AnimationNode[]

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

      Returns AnimationNode[]

    Methods

    • Adds a node to the internal nodes array.

      Parameters

      Returns void