Skip to main content

applySwatchesToSelection

@zylem/game-lib


@zylem/game-lib / bridge / applySwatchesToSelection

Function: applySwatchesToSelection()

applySwatchesToSelection(channel, swatches, options?): boolean

Defined in: packages/bridge/src/swatches.ts:19

Apply swatches to the game's current selection, as last published on entity:selection.

Parameters​

channel​

BridgeChannel

swatches​

SwatchSpec[]

options?​

opId?​

string

Returns​

boolean

false when nothing is selected (no message is sent).