docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TouchscreenGestureInputControllerState

    State for input device representing touchscreen gestures.

    Implements
    IInputStateTypeInfo
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit.AR.Inputs
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public struct TouchscreenGestureInputControllerState : IInputStateTypeInfo

    Fields

    dragCurrentPosition

    The current screen position of the drag gesture.

    Declaration
    public Vector2 dragCurrentPosition
    Field Value
    Type Description
    Vector2

    dragDelta

    The delta screen position of the drag gesture.

    Declaration
    public Vector2 dragDelta
    Field Value
    Type Description
    Vector2

    dragStartPosition

    The screen position where the drag gesture started.

    Declaration
    public Vector2 dragStartPosition
    Field Value
    Type Description
    Vector2

    fingerCount

    The number of fingers on the touchscreen.

    Declaration
    public int fingerCount
    Field Value
    Type Description
    int

    pinchGap

    The gap between then position of the first and second fingers for the pinch gesture.

    Declaration
    public float pinchGap
    Field Value
    Type Description
    float

    pinchGapDelta

    The gap delta between then position of the first and second fingers for the pinch gesture.

    Declaration
    public float pinchGapDelta
    Field Value
    Type Description
    float

    pinchStartPosition1

    The screen position of the first finger where the pinch gesture started.

    Declaration
    public Vector2 pinchStartPosition1
    Field Value
    Type Description
    Vector2

    pinchStartPosition2

    The screen position of the second finger where the pinch gesture started.

    Declaration
    public Vector2 pinchStartPosition2
    Field Value
    Type Description
    Vector2

    tapStartPosition

    The screen position where the tap gesture started.

    Declaration
    public Vector2 tapStartPosition
    Field Value
    Type Description
    Vector2

    twistDeltaRotation

    The delta rotation of the twist gesture.

    Declaration
    public float twistDeltaRotation
    Field Value
    Type Description
    float

    twistStartPosition1

    The screen position of the first finger where the twist gesture started.

    Declaration
    public Vector2 twistStartPosition1
    Field Value
    Type Description
    Vector2

    twistStartPosition2

    The screen position of the second finger where the twist gesture started.

    Declaration
    public Vector2 twistStartPosition2
    Field Value
    Type Description
    Vector2

    twoFingerDragCurrentPosition

    The current screen position of the two-finger drag gesture.

    Declaration
    public Vector2 twoFingerDragCurrentPosition
    Field Value
    Type Description
    Vector2

    twoFingerDragDelta

    The delta screen position of the two-finger drag gesture.

    Declaration
    public Vector2 twoFingerDragDelta
    Field Value
    Type Description
    Vector2

    twoFingerDragStartPosition1

    The screen position of the first finger where the two-finger drag gesture started.

    Declaration
    public Vector2 twoFingerDragStartPosition1
    Field Value
    Type Description
    Vector2

    twoFingerDragStartPosition2

    The screen position of the second finger where the two-finger drag gesture started.

    Declaration
    public Vector2 twoFingerDragStartPosition2
    Field Value
    Type Description
    Vector2

    Properties

    format

    The data format identifier of the state.

    Declaration
    public FourCC format { get; }
    Property Value
    Type Description
    FourCC

    formatId

    Memory format identifier for TouchscreenGestureInputControllerState.

    Declaration
    public static FourCC formatId { get; }
    Property Value
    Type Description
    FourCC
    See Also
    format

    Implements

    UnityEngine.InputSystem.LowLevel.IInputStateTypeInfo
    In This Article
    Back to top
    Copyright © 2025 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)