AnimationComponent
WL.AnimationComponent
Native animation component
Provides access to a native animation component instance
Kind: static class of WL
.animation
Set animation to play
Kind: instance property of AnimationComponent
Param | Type | Description |
---|---|---|
animation | Animation | to play |
.animation ⇒ Animation
Kind: instance property of AnimationComponent
Returns: Animation - animation set for this component
.playCount
Set play count. Set to 0
to loop indefinitely.
Kind: instance property of AnimationComponent
Param | Type | Description |
---|---|---|
playCount | number | Number of times to repeat the animation |
.playCount ⇒ number
Kind: instance property of AnimationComponent
Returns: number - Number of times the animation is played
.state ⇒ AnimationState
Kind: instance property of AnimationComponent
Returns: AnimationState - Current playing state of the animation
.play()
Play animation
Kind: instance method of AnimationComponent
.stop()
Stop animation
Kind: instance method of AnimationComponent
.pause()
Pause animation
Kind: instance method of AnimationComponent