EntityApplySwatchPayload
@zylem/game-lib / bridge / EntityApplySwatchPayload
Interface: EntityApplySwatchPayload
Defined in: packages/bridge/src/protocol.ts:149
Apply swatches to live entities without a rebuild.
Batch-shaped from the start: the game applies every swatch to every uuid (cartesian product, in order) under one operation, so a drag-and-drop sends arrays of one while a multi-select apply from the editor reuses the same message and yields a single undo step. Within a batch the last shader wins per entity and behaviors replace any already attached with the same key.
Properties
opId?
optionalopId?:string
Defined in: packages/bridge/src/protocol.ts:151
Operation id for the resulting scene:operation; minted by the game when absent.
select?
optionalselect?:boolean
Defined in: packages/bridge/src/protocol.ts:155
Make the successfully targeted entities the current selection.
swatches
swatches:
SwatchSpec[]
Defined in: packages/bridge/src/protocol.ts:153
uuids
uuids:
string[]
Defined in: packages/bridge/src/protocol.ts:152