The 2D layer · function

removeUiChild

Take child out of parent. A child that is not there is left alone.

Explained in Sprites and tilemaps.

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

Parameters

ParameterTypeDescription
parentUiNode
childUiNode