跳转到内容

EventBindingRow

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

Defined in: eventBinding.ts:50

One authored wire. event is an open string (the widget vocabulary lives in UIEventType, but any emitted name works); action/guard are aiRegistry names; arg is the action’s per-reference argument, exactly as .esfsm/.esbt carry it.

action: string

Defined in: eventBinding.ts:60

Registered action name (aiRegistry), e.g. 'ui.setPage'.


optional arg?: string

Defined in: eventBinding.ts:66

The action’s argument in canonical string form, e.g. 'tabs:settings'. Rows authored before the action declared its parameters keep this and still run — the registry projects between the two forms.


optional enabled?: boolean

Defined in: eventBinding.ts:77

Authoring toggle — an unchecked row stays in the data but never fires.


event: string

Defined in: eventBinding.ts:52

Event type to listen for on this entity, e.g. 'click'.


optional guard?: string

Defined in: eventBinding.ts:73

Registered condition name that must pass for the row to run.


optional once?: boolean

Defined in: eventBinding.ts:75

Run at most once, then stay inert until the scene reloads.


optional params?: Record<string, AiParamValue>

Defined in: eventBinding.ts:71

The action’s declared parameters by name, e.g. {controller: 'tabs', page: 'settings'}. Present when the action declares parameters; wins over arg.


optional target?: string

Defined in: eventBinding.ts:58

Name of the entity the action runs on. Empty/omitted = the entity that carries the binding. Resolution is nearest-first, so a name inside a prefab instance finds that instance’s copy.