Animation
Lens Studio v1.0.0+
Scripting Name: Component.Animation
Inherits from Component
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.
Methods
getAnimationLayerByName(String layerName)
: AnimationLayer
Returns the AnimationLayer under the name layerName
.
removeAnimationLayerByName(String layerName)
: void
Removes the AnimationLayer under the name layerName
.
setAnimationLayerByName(String layerName, AnimationLayer animationLayer)
: void
Adds an AnimationLayer under the name layerName
.
Inherited Methods
destroy()
: void
Destroys the component.
getSceneObject()
: SceneObject
Returns the SceneObject the component is attached to.
getTransform()
: Transform
Returns the Transform this component is attached to.
isSame(SerializableWithUID other)
: Boolean
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Inherited Properties
enabled
: Boolean
If disabled, the Component will stop enacting its behavior.
Still Looking for help?
Visit Support