Table of Contents

Class DndPointerSensor

Namespace
Velvet
Assembly
Velvet.Docs.dll

dnd-kit's PointerSensor: a primary-button press starts the drag under Activation, or under the scope's activation: when this is null. A draggable's own activation: wins over both.

public sealed class DndPointerSensor : DndSensor
Inheritance
object
DndPointerSensor

Constructors

DndPointerSensor(DragActivation?)

Properties

Activation

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.