The 2D layer · function

addUiChild

Put child at the end of parent's children, detaching it from wherever it was.

Explained in Sprites and tilemaps.

function addUiChild(parent: UiNode, child: UiNode): UiNode
import { addUiChild } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
parentUiNode
childUiNode