Skip to content

Animation ​

AnimationScripts: AnimationComponent

From a script ​

ts
import { AnimationComponent } from "mmpx";

const animation = this.entity.TryGetComponent(AnimationComponent);

Full API: AnimationComponent.

Fields ​

FieldTypeDefaultDescription
Clips
clipAssets
list of animation assets[]
Default Clip
defaultClip
string—Clip name played by Play() with no argument and by Play On Load
Play On Load
playOnLoad
booleanfalse

Advanced ​

FieldTypeDefaultDescription
Inline Clips
clips
json[]

© 2026 PlayAdGentic