Engine API Reference
    Preparing search index...

    Class AnimTrack

    An AnimTrack stores the curve data necessary to animate a set of target nodes. It can be linked to the nodes it should animate using the AnimComponent#assignAnimation method.

    Index

    Properties

    EMPTY: AnimTrack = ...

    This AnimTrack can be used as a placeholder track when creating a state graph before having all associated animation data available.

    Accessors

    • get curves(): AnimCurve[]

      Gets the list of curves contained in the AnimTrack.

      Returns AnimCurve[]

    • get duration(): number

      Gets the duration of the AnimTrack.

      Returns number

    • get events(): AnimEvents

      Gets the animation events that will fire during the playback of this anim track.

      Returns AnimEvents

    • set events(animEvents: AnimEvents): void

      Sets the animation events that will fire during the playback of this anim track.

      Parameters

      Returns void

    • get inputs(): AnimData[]

      Gets the list of curve key data contained in the AnimTrack.

      Returns AnimData[]

    • get name(): string

      Gets the name of the AnimTrack.

      Returns string

    • get outputs(): AnimData[]

      Gets the list of curve values contained in the AnimTrack.

      Returns AnimData[]