Documentation
    Preparing search index...

    Interface AnimationTrackLike

    A track with its value type erased — what AnimationClip stores and what the mixer consumes.

    A clip's tracks are heterogeneous (a position track next to a color track next to a Boolean track), so the array element type cannot name one T. This interface is the honest erasure: every AnimationTrack<T> satisfies it, and a consumer holding one works through AnimationTrackLike.adapter — whose ValueAdapter.mutatesInPlace tells it how to treat the value — exactly as PropertyBinding does.

    interface AnimationTrackLike {
        adapter: ValueAdapter<unknown>;
        endTime: number;
        interpolation: InterpolationMode;
        keyframeCount: number;
        path: string;
        startTime: number;
        times: readonly number[];
        values: readonly unknown[];
        sample(timeSeconds: number, out: unknown): unknown;
    }

    Implemented by

    Index
    adapter: ValueAdapter<unknown>

    Adapter for the erased value type.

    endTime: number

    Last keyframe time in seconds.

    interpolation: InterpolationMode

    Interpolation mode (§17).

    keyframeCount: number

    Number of keyframes.

    path: string

    Property path, resolved by the mixer.

    startTime: number

    First keyframe time in seconds.

    times: readonly number[]

    Keyframe times in seconds, strictly increasing.

    values: readonly unknown[]

    Keyframe values.