The 2D layer · function

resetUiInput

Forget everything, and clear the flags this router set on the tree.

Explained in Sprites and tilemaps.

function resetUiInput(input: UiInput): void
import { resetUiInput } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
inputUiInput

In depth

For a tree going away or a pointer leaving the window. Without it a node keeps the hovered it had when the cursor left, and draws lit for ever.