跳转到内容

AnimatorEventPayload

此内容尚不支持你的语言。

Defined in: animation/animatorEvent.ts:32

One event a clip declared, and who it happened to.

The payload is two scalars rather than an open object: what crosses this bus is also what a compiled system reads, and a shape that varies per clip has no layout to bake in. A clip states them as value and text on the event.

entity: number

Defined in: animation/animatorEvent.ts:34

The animated entity — the character this happened to.


name: string

Defined in: animation/animatorEvent.ts:36

The event’s name as the clip declared it (footstep, hit).


text: string

Defined in: animation/animatorEvent.ts:40

Its string payload; empty when the clip states none.


value: number

Defined in: animation/animatorEvent.ts:38

Its numeric payload; 0 when the clip states none.