docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XRHandMicrogesture

    The microgesture to query or react to, such as a thumb swipe or tap.

    Namespace: UnityEngine.XR.Hands
    Assembly: Unity.XR.Hands.dll
    Syntax
    public enum XRHandMicrogesture
    Remarks

    Each value identifies one microgesture. To check whether a microgesture is active, pass a value to IsMicrogestureActive(XRHandMicrogesture). To check whether it became active or inactive in the latest dynamic update, use WasMicrogesturePerformedThisFrame(XRHandMicrogesture) or WasMicrogestureCompletedThisFrame(XRHandMicrogesture). To react when a microgesture becomes active or inactive, subscribe to microgestureUpdated.

    Microgestures are available only when the hand subsystem supports them. To check support, read supportsMicrogestures.

    Fields

    Name Description
    None

    No microgesture.

    SwipeBackward

    A thumb swipe backward.

    SwipeForward

    A thumb swipe forward.

    SwipeLeft

    A thumb swipe to the left.

    SwipeRight

    A thumb swipe to the right.

    TapThumb

    A thumb tap.

    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)