Description

Configures an animation layer for a single SceneObject. Gives access to position, rotation, scale and blend shape animation tracks. See also: Playing 3D Animation Guide, AnimationMixer, Animation.

interface AnimationLayer {
    name: string;
    position: Vec3AnimationTrack;
    rotation: QuaternionAnimationTrack;
    scale: Vec3AnimationTrack;
    uniqueIdentifier: string;
    visibility: IntAnimationTrack;
    getBlendShapeTrack(shapeName): FloatAnimationTrack;
    getTypeName(): string;
    isOfType(type): boolean;
    isSame(other): boolean;
    setBlendShapeTrack(shapeName, track): void;
}

Hierarchy (view full)

Properties

name: string

Description

The name of the Asset in Lens Studio.

Description

The Vec3AnimationTrack controlling position in this AnimationLayer.

Description

The QuaternionAnimationTrack controlling rotation in this AnimationLayer.

Description

The Vec3AnimationTrack controlling scale in this AnimationLayer.

uniqueIdentifier: string
visibility: IntAnimationTrack

Description

The IntAnimationTrack controlling visibility in this AnimationLayer.

Methods

  • Returns string

    Description

    Returns the name of this object's type.

  • Parameters

    • type: string

    Returns boolean

    Description

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

  • Parameters

    Returns boolean

    Description

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

  • Parameters

    Returns void

    Description

    Sets or adds a FloatAnimationTrack to this AnimationLayer's blend shapes.

Generated using TypeDoc