The 2D layer · function

markDirty

Union rect into what must be redrawn. A zero-area rectangle still counts as a change.

Explained in Sprites and tilemaps.

function markDirty(tracker: DirtyTracker, rect: UiRect): void
import { markDirty } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
trackerDirtyTracker
rectUiRect