CLASSES
TagsA - Z

Animatable

Animation

Description

class Animatable

Constructor

new Animatable(scene, target, fromFrame, toFrame, loopAnimation, speedRatio, onAnimationEnd, animations)

Parameters

Name Type Description
scene Scene
target any
optional fromFrame number
optional toFrame number
optional loopAnimation boolean
optional speedRatio number
optional onAnimationEnd Nullable<() => void>

Members

target : any

fromFrame : number

toFrame : number

loopAnimation : boolean

onAnimationEnd : Nullable<() => void>

animationStarted : boolean

speedRatio : number

Methods

getAnimations() RuntimeAnimation[]

appendAnimations(target, animations) void

Parameters

Name Type Description
target any
animations Animation[]

getAnimationByTargetProperty(property) Nullable<Animation>

Parameters

Name Type Description
property string

getRuntimeAnimationByTargetProperty(property) Nullable<RuntimeAnimation>

Parameters

Name Type Description
property string

reset() void

enableBlending(blendingSpeed) void

Parameters

Name Type Description
blendingSpeed number

disableBlending() void

goToFrame(frame) void

Parameters

Name Type Description
frame number

pause() void

restart() void

stop(animationName) void

Parameters

Name Type Description
optional animationName string