Skip to content

setParent

setParent(pChild, pParent): void

Reassigns the displays object parent while maintaing it’s world position

Parameters

pChild: DisplayObject

pParent: Container<DisplayObject>

Returns

void

Todo

SH: Look at: https://github.com/pixijs/js/wiki/v4-Gotchas for possible optimization

Source

src/utils/PixiUtils.ts:54