docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AppUIInput

    Additional input management for AppUI.

    Inheritance
    object
    AppUIInput
    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 static class AppUIInput

    Properties

    pinchGesture

    The current pinch gesture.

    Declaration
    public static PinchGesture pinchGesture { get; }
    Property Value
    Type Description
    PinchGesture
    Remarks

    To know if a pinch gesture has been processed this frame, check pinchGestureChangedThisFrame.

    pinchGestureChangedThisFrame

    Whether a pinch gesture has been processed this frame.

    Declaration
    public static bool pinchGestureChangedThisFrame { get; }
    Property Value
    Type Description
    bool
    Remarks

    This will be set to true for any phase of the pinch gesture. To know the current pinch gesture, check pinchGesture.

    Methods

    RegisterGestureRecognizer<TRecognizer>()

    Registers a gesture recognizer to be used by AppUI.

    Declaration
    public static void RegisterGestureRecognizer<TRecognizer>() where TRecognizer : IGestureRecognizer, new()
    Type Parameters
    Name Description
    TRecognizer

    The type of the gesture recognizer to register.

    UnregisterGestureRecognizer<TRecognizer>()

    Unregisters a gesture recognizer from AppUI.

    Declaration
    public static void UnregisterGestureRecognizer<TRecognizer>() where TRecognizer : IGestureRecognizer
    Type Parameters
    Name Description
    TRecognizer

    The type of the gesture recognizer to unregister.

    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)