Class Draggable
Manipulator which monitors Press, Hold and Release events in order to drag visuals.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Draggable : Pressable, IManipulator
Constructors
Name | Description |
---|---|
Draggable(Action, Action<Draggable>, Action<Draggable>, Action<Draggable>) | Construct a Draggable manipulator. |
Properties
Name | Description |
---|---|
deltaPos | The delta position between the last frame and the current one. |
hasMoved | Has the pointer moved since the last PointerDownEvent. |
localPosition | The local position received from the imGui native event. |
position | The world position received from the imGui native event. |
Methods
Name | Description |
---|---|
Cancel() | Cancel the drag operation. |
ProcessDownEvent(EventBase, Vector2, int) | This method processes the down event sent to the target Element. |
ProcessMoveEvent(EventBase, Vector2) | This method processes the move event sent to the target Element. |
ProcessUpEvent(EventBase, Vector2, int) | This method processes the up event sent to the target Element. |