The 2D layer · function

beginDrag

Explained in Sprites and tilemaps.

function beginDrag(state: PointerState, source: UiNode, payload: string): void
import { beginDrag } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
statePointerState
sourceUiNode
payloadstring