Class Dragger
Manipulator that allows dragging from a container component.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Dragger : PointerManipulator, IManipulator
Constructors
| Name | Description |
|---|---|
| Dragger(Action<PointerMoveEvent>, Action<PointerMoveEvent>, Action<PointerUpEvent>, Action) | Creates a new Dragger instance. |
Properties
| Name | Description |
|---|---|
| acceptDrag | Delegate that will be called when a drag should be accepted when the dragger wants to become active during PointerMoveEvent. |
| acceptStartDrag | Delegate that will be called when a drag should be accepted during PointerDownEvent. |
| dragThreshold | The threshold in pixels after which a drag will start. |
| isActive | Whether the drag is currently active. |
Methods
| Name | Description |
|---|---|
| Cancel() | Cancels the drag. |
| RegisterCallbacksOnTarget() | Called to register event callbacks on the target element. |
| UnregisterCallbacksFromTarget() | Called to unregister event callbacks from the target element. |