Animation
From a script
ts
import { AnimationComponent } from "mmpx";
const animation = this.entity.TryGetComponent(AnimationComponent);Full API: AnimationComponent.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
ClipsclipAssets | list of animation assets | [] | |
Default ClipdefaultClip | string | — | Clip name played by Play() with no argument and by Play On Load |
Play On LoadplayOnLoad | boolean | false |
Advanced
| Field | Type | Default | Description |
|---|---|---|---|
Inline Clipsclips | json | [] |