@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / AnimationStateMachine
Class: AnimationStateMachine
Defined in: AnimationStateMachine.ts:24
Implements
Constructors
Constructor
ts
new AnimationStateMachine(
name,
clip,
callbacks?,
loop?,
clipId?): AnimationStateMachine;Defined in: AnimationStateMachine.ts:33
Parameters
| Parameter | Type | Default value |
|---|---|---|
name | string | undefined |
clip | AnimationClip | undefined |
callbacks | AnimationStateCallbacks | {} |
loop | boolean | false |
clipId | string | null | null |
Returns
AnimationStateMachine
Properties
| Property | Type | Default value | Defined in |
|---|---|---|---|
name | string | undefined | AnimationStateMachine.ts:25 |
clip | AnimationClip | undefined | AnimationStateMachine.ts:26 |
clipId | string | null | undefined | AnimationStateMachine.ts:27 |
loop | boolean | undefined | AnimationStateMachine.ts:28 |
isPlaying | boolean | false | AnimationStateMachine.ts:29 |
isPaused | boolean | false | AnimationStateMachine.ts:30 |
Methods
setCallbacks()
ts
setCallbacks(callbacks): void;Defined in: AnimationStateMachine.ts:51
Parameters
| Parameter | Type |
|---|---|
callbacks | AnimationStateCallbacks |
Returns
void
setLoop()
ts
setLoop(loop): void;Defined in: AnimationStateMachine.ts:59
Parameters
| Parameter | Type |
|---|---|
loop | boolean |
Returns
void
onStart()
ts
onStart(): void;Defined in: AnimationStateMachine.ts:63
Returns
void
Implementation of
onPlaying()
ts
onPlaying(): void;Defined in: AnimationStateMachine.ts:67
Returns
void
Implementation of
onEnd()
ts
onEnd(): void;Defined in: AnimationStateMachine.ts:71
Returns
void
Implementation of
play()
ts
play(): void;Defined in: AnimationStateMachine.ts:75
Returns
void
Implementation of
pause()
ts
pause(): void;Defined in: AnimationStateMachine.ts:87
Returns
void
Implementation of
stop()
ts
stop(): void;Defined in: AnimationStateMachine.ts:96
Returns
void

