Runtime Docs

Animation Runtime API

Runtime Index

Purpose

Runtime animation helpers control AnimationPlayer nodes: set clips, bind tracks, play, pause, seek, and set playback speed.

Animation Runtime API explains behavior, constraints, and practical usage so implementation decisions stay consistent across scripts and scenes.

API Source

Functions

anim_player_set_clip!anim_player_bind!anim_player_play!anim_player_pause!anim_player_seek!

Enums

// not documented yet for this module

Constants

track names come from .panim [Objects]

Types

RuntimeWindowAnimationIDNodeIDScriptContext

Usage Pattern

anim_player_set_clip!(ctx.run, player_id, clip_id);anim_player_bind!(ctx.run, player_id, "Hero", hero_id);anim_player_play!(ctx.run, player_id);

Key Details

animation_player_id must be an AnimationPlayer node.

Track names come from [Objects] in .panim without @.

Bindings map animation objects to runtime NodeID values.

Scene bindings resolve scene keys to NodeID during scene merge.