Skip to content
pixi-silk
GitHub repository
Function

setPath

import { setPath } from 'pixi-silk/ui/inspector';
function setPath(
   target: unknown, 
   path: string, 
   value: unknown
): void;

Sets the value at a dot path such as position.x. Missing objects on the way are not created, and the write is skipped.

Parameters#

ParameterType
targetunknown
pathstring
valueunknown

Returns#

void