AnimationLayer
Lens Studio v1.0.0+
Scripting Name: Asset.AnimationLayer
Inherits from Asset
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.
Methods
getBlendShapeTrack(String shapeName)
: FloatAnimationTrack
Returns a FloatAnimationTrack from this AnimationLayer’s blend shapes.
setBlendShapeTrack(String shapeName, FloatAnimationTrack track)
: void
Sets or adds a FloatAnimationTrack to this AnimationLayer’s blend shapes.
Properties
position
: Vec3AnimationTrack
The Vec3AnimationTrack controlling position in this AnimationLayer.
rotation
: QuaternionAnimationTrack
The QuaternionAnimationTrack controlling rotation in this AnimationLayer.
scale
: Vec3AnimationTrack
The Vec3AnimationTrack controlling scale in this AnimationLayer.
visibility
: IntAnimationTrack
The IntAnimationTrack controlling visibility in this AnimationLayer.
Inherited Methods
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
name
: String
The name of the Asset in Lens Studio.
Still Looking for help?
Visit Support