The 2D layer · function

setUiFocus

Move focus, clearing whatever had it. null focuses nothing.

Explained in Sprites and tilemaps.

function setUiFocus(input: UiInput, node: UiNode | null): void
import { setUiFocus } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
inputUiInput
nodeUiNode | null