Skip to content
pixi-silk
GitHub repository
Function

bindObjects

import { bindObjects } from 'pixi-silk/ui/inspector';
function bindObjects(targets: readonly object[]): InspectorBinding;

Edits plain objects or display objects. Keys are dot paths, such as position.x, alpha or style.fill. Pass the selection’s items to edit several objects at once. The list is copied. The binding does not watch the objects: call Inspector.refresh after changing them elsewhere.

Parameters#

ParameterType
targetsreadonly object[]

Returns#

InspectorBinding

Example#

inspector.bind(bindObjects(selection.items));