Table of Contents

Class DndSensor

Namespace
Velvet
Assembly
Velvet.Docs.dll

An input source that can start a drag, dnd-kit's sensor. A scope offers each pointer-down and key-down that reaches one of its enabled draggables to its sensors in order (Sensors), and the first whose TryActivate(EventBase, DndSensorActivation) returns true takes the event. A press or key that lands inside a nested draggable, or inside a NoDrag element, is offered to the innermost draggable only.

public abstract class DndSensor
Inheritance
object
DndSensor
Derived

Methods

TryActivate(EventBase, DndSensorActivation)

Decides whether evt starts this sensor's gesture on the draggable activation names. Return true to claim it; the drag itself starts when the sensor calls Start(Vector2, Action?), now or after a constraint of its own.