Description

Used by AnimationMixer to animate a single object in the hierarchy. These are automatically added to SceneObjects when importing animated FBX files. See also: Playing 3D Animation Guide, AnimationMixer, AnimationLayer.

interface Animation {
    enabled: boolean;
    uniqueIdentifier: string;
    destroy(): void;
    getAnimationLayerByName(layerName): AnimationLayer;
    getSceneObject(): SceneObject;
    getTransform(): Transform;
    getTypeName(): string;
    isOfType(type): boolean;
    isSame(other): boolean;
    removeAnimationLayerByName(layerName): void;
    setAnimationLayerByName(layerName, animationLayer): void;
}

Hierarchy (view full)

Properties

enabled: boolean

Description

If disabled, the Component will stop enacting its behavior.

uniqueIdentifier: string

Methods

  • Returns void

    Description

    Destroys the component.

  • Parameters

    • layerName: string

    Returns AnimationLayer

    Description

    Returns the AnimationLayer under the name layerName.

  • 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

    • layerName: string

    Returns void

    Description

    Removes the AnimationLayer under the name layerName.

  • Parameters

    Returns void

    Description

    Adds an AnimationLayer under the name layerName.

Generated using TypeDoc