Method Start
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Start(Vector2, Action?)
Starts the drag at coordinates, panel space: every later
Move(Vector2) translates the drag by its distance from them. Returns null, starting
nothing, while another drag of the same tree is active or once the draggable has left its scope.
public DndSensorSession? Start(Vector2 coordinates, Action? onClose = null)
Parameters
coordinatesVector2The reference the session's moves are measured from.
onCloseActionCalled once when the drag ends for any reason, so the sensor can stop listening.
Returns
- DndSensorSession
The started session, or null.