docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DragContext

    Context for drag operations on input labels.

    Inheritance
    object
    DragContext
    Implements
    IContext
    IEquatable<DragContext>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    IContext
    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)