Container for one or more AnimationCurves. Can be sampled to drive attributes (e.g. animation, vfx, code etc.)

When evaluating multiple values, the values are selected from left to right in order. For example, for a vec3 containing x,y,z it will correspond to track index 0, 1, 2 from left to right.

Hierarchy (View Summary, Expand)

Constructors

Properties

name: string

The name of the Asset in Lens Studio.

uniqueIdentifier: string

Methods

  • Samples the track at the given time to get some value.

    Parameters

    • time: number

    Returns number

  • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

    Parameters

    • time: number

    Returns quat

  • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

    Parameters

    • time: number

    Returns vec2

  • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

    Parameters

    • time: number

    Returns vec3

  • Samples the track at the given time to get some value. Returns 0 for non-existent channels.

    Parameters

    • time: number

    Returns vec4

  • Retrieves an AnimationCurve associated with the given key.

    Parameters

    • key: string

    Returns AnimationCurve

  • Returns an array of strings, which are the names of properties associated with the AnimationCurveTrack.

    Returns string[]

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

  • Sets an AnimationCurve to a given key.

    Parameters

    Returns void

MMNEPVFCICPMFPCPTTAAATR