Lens Scripting API

    Class Animation

    This class is deprecated. Used in Lens Studio 4.55 to animate single object in the hierarchy. See AnimationPlayer instead.

    These are automatically added to scene objects when importing animated FBX files. Used by AnimationMixer.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    enabled: boolean

    If disabled, the Component will stop enacting its behavior.

    sceneObject: SceneObject

    The scene object this component is on.

    uniqueIdentifier: string

    Methods

    • Destroys the component.

      Returns void

    • Returns the AnimationLayer under the name layerName.

      Parameters

      • layerName: string

      Returns AnimationLayer

    • Returns the name of this object's type.

      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

    • Removes the AnimationLayer under the name layerName.

      Parameters

      • layerName: string

      Returns void

    • Adds an AnimationLayer under the name layerName.

      Parameters

      Returns void

    MMNEPVFCICPMFPCPTTAAATR