Class DragContext
Context for drag operations on input labels.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
public record DragContext : IContext, IEquatable<DragContext>
Constructors
DragContext(DragPhase, Vector3, DeltaSpeed)
Context for drag operations on input labels.
Declaration
public DragContext(DragPhase phase, Vector3 delta, DeltaSpeed speed)
Parameters
| Type | Name | Description |
|---|---|---|
| DragPhase | phase | The current phase of the drag operation. |
| Vector3 | delta | The delta of the device since the last drag event. |
| DeltaSpeed | speed | The speed modifier for the drag operation. |
Properties
delta
The delta in pixels since the last drag event.
Declaration
public Vector3 delta { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
phase
The current phase of the drag operation.
Declaration
public DragPhase phase { get; set; }
Property Value
| Type | Description |
|---|---|
| DragPhase |
speed
THe speed modifier for the drag operation.
Declaration
public DeltaSpeed speed { get; }
Property Value
| Type | Description |
|---|---|
| DeltaSpeed |