.aeanim clips
A clip is an aetext file. Every name below is checked: an unknown block, attribute or field, or an attribute written inside a block, fails the import with ANM001 and the line to fix.
anim version=1 length=0.38 fps=12 loop=loop {
track "" prop="SpriteRenderer.size" kind=vec2 {
key t=0 v=[1, 1] interp=linear {}
key t=0.13 v=[1.3, 0.84] {}
}
frames "Slash" start=0.08 {
sprites=[asset("5a1a5c00000000000000000000000010"), asset("5a1a5c00000000000000000000000011")]
durations=[0.04, 0.04]
}
event t=0.14 name="Hit" payload=1 {}
}
anim
| Attribute | Meaning |
|---|---|
version |
text version, 1 |
length |
length in seconds, required |
fps |
frame rate the editor uses to snap recorded keys and to show time as frames; the runtime ignores it |
loop |
once, loop or pingPong |
It holds track, frames and event blocks.
track
The label is the target: "" is the node itself, "Sword" or "Arm/Hand" a descendant.
| Attribute | Meaning |
|---|---|
prop |
Component.field, required |
kind |
float32, float64, vec2, vec3, vec4, color, rect, quat, int32, int64, bool, enum or assetRef, required |
numeric |
an int32 or int64 track that interpolates instead of stepping |
root |
the root motion track (transform.position, vec2) |
authority |
presentation (default) or simulation |
onEnd |
hold (default) or restore |
It holds key blocks only.
key
| Attribute | Meaning |
|---|---|
t |
time in seconds, required |
v |
value of the track's kind, required |
interp |
bezier, linear or step |
tangent |
auto, linear or free |
in, out |
tangents of a free key |
frames
A shorthand for a sprite track with step keys. The label is the target, as for track.
| Attribute | Meaning |
|---|---|
start |
time of the first frame |
fps |
frame rate when there are no durations, 12 by default |
prop |
sprite property, SpriteRenderer.sprite by default |
flipProp |
flip property, SpriteRenderer.flipX by default |
authority |
as for track |
| Field | Meaning |
|---|---|
sprites |
list of sprite assets, required |
durations |
seconds per frame, one per sprite |
flipX |
true or false per sprite |
event
| Attribute | Meaning |
|---|---|
t |
time in seconds, required |
name |
event name, required |
payload |
a number or true/false |
mode |
gameplay (default), presentation or preview |