Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.41 KB

decentraland-ecs.animationclip.md

File metadata and controls

23 lines (17 loc) · 1.41 KB

Home > decentraland-ecs > AnimationClip

AnimationClip class

Properties

Property Access Modifier Type Description
clip string Name of the animation in the model
loop boolean Does the animation loop?, default: true
playing boolean Is the animation playing? default: true
speed number The animation speed
weight number Weight of the animation, values from 0 to 1, used to blend several animations. default: 1

Methods

Method Access Modifier Returns Description
constructor(clip, params) Constructs a new instance of the AnimationClip class
pause() void Pauses the animation
play() void Starts the animation
setParams(params) void Sets the clip parameters