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#
| Parameter | Type |
|---|---|
targets | readonly object[] |
Returns#
Example#
inspector.bind(bindObjects(selection.items));