Preparing search index...

    Represents an animation clip instance with playback configuration.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project?.scene;
    if (!scene) {
    console.log('No scene loaded.');
    return;
    }

    // Walk scene objects looking for AnimationPlayer components
    function walk(obj: Editor.Model.SceneObject): void {
    const players = obj.getComponents('AnimationPlayer');
    for (const player of players) {
    for (const clip of player.animationClips) {
    console.log(
    `Clip: ${clip.name} | frames: ${clip.begin}${clip.end}` +
    ` | weight: ${clip.weight} | reversed: ${clip.reversed}`
    );
    }
    }
    for (const child of obj.children) walk(child);
    }
    for (const root of scene.rootSceneObjects) walk(root);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    animation: AnimationAsset

    The animation asset this clip references.

    begin: number

    Start frame of the clip.

    How this clip blends with other layers.

    disabled: boolean

    Whether this clip is disabled.

    end: number

    End frame of the clip.

    id: Uuid

    The unique id of the entity.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    name: string

    Name of the clip.

    playbackMode: PlaybackMode

    Determines playback behavior (loop, clamp, etc).

    playbackSpeed: number

    Multiplier for playback speed.

    reversed: boolean

    Whether playback is reversed.

    How the clip scales to fit the frame range.

    type: string

    The entity's type.

    weight: number

    Blend weight of this clip (0-1 range).

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean