The 2D layer · function

uiNodeNamed

The node named, depth-first from root, or null. For a caller finding its own tree again.

Explained in Sprites and tilemaps.

function uiNodeNamed(root: UiNode, name: string): UiNode | null
import { uiNodeNamed } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
rootUiNode
namestring