AnimationComponent¶
AnimationComponent API exposed to Lua and C++ gameplay code.
Properties¶
| Name | Languages |
|---|---|
actions |
C++ | Lua |
ownedActions |
C++ | Lua |
loop |
C++ | Lua |
duration |
C++ | Lua |
defaultFadeTime |
C++ | Lua |
AnimationComponent does not store a separate name. Animations are entities, so their
display and lookup name comes from the inherited
Animation::name entity property.
actions is the list of ActionFrame entries making up the timeline.
A frame duration of 0 means auto — the frame follows the action's own duration.
defaultFadeTime is the crossfade duration (seconds) used by
Model::playAnimation() when no explicit fade
time is passed. Edit it in the Properties window as Fade time, or on an
Animation object via defaultFadeTime.