The 2D layer · function

uiFocusPrevious

The focusable node before current, wrapping.

Explained in Sprites and tilemaps.

function uiFocusPrevious(root: UiNode, current: UiNode | null): UiNode | null
import { uiFocusPrevious } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
rootUiNode
currentUiNode | null