docs.unity3d.com
    Show / Hide Table of Contents

    Class WindowsMRGestures

    Provide WindowsMR specific event callbacks that will inform code of when gesture events occur.

    Inheritance
    Object
    WindowsMRGestures
    Namespace: UnityEngine.XR.WindowsMR
    Syntax
    public sealed class WindowsMRGestures : MonoBehaviour

    Fields

    enableManipulationGesture

    Value used to enable/disable the Manipulation Gesture

    Declaration
    public bool enableManipulationGesture
    Field Value
    Type Description
    Boolean

    enableNavigationGesture

    Value used to enable/disable the Navigation Gesture

    Declaration
    public bool enableNavigationGesture
    Field Value
    Type Description
    Boolean

    Properties

    gestureSubsystem

    Get the WindowsMRGestureSubsystem whose lifetime this component manages.

    Declaration
    public WindowsMRGestureSubsystem gestureSubsystem { get; }
    Property Value
    Type Description
    WindowsMRGestureSubsystem

    Events

    onActivate

    This event is invoked whenever a is received by the gestures subsystem.

    Declaration
    public event Action<ActivateGestureEvent> onActivate
    Event Type
    Type Description
    Action<ActivateGestureEvent>

    onHoldChanged

    This event is invoked whenever a WindowsMRHoldGestureEvent is received by the gestures subsystem.

    Declaration
    public event Action<WindowsMRHoldGestureEvent> onHoldChanged
    Event Type
    Type Description
    Action<WindowsMRHoldGestureEvent>

    onManipulationChanged

    This event is invoked whenever a WindowsMRManipulationGestureEvent is received by the gestures subsystem.

    Declaration
    public event Action<WindowsMRManipulationGestureEvent> onManipulationChanged
    Event Type
    Type Description
    Action<WindowsMRManipulationGestureEvent>

    onNavigationChanged

    This event is invoked whenever a WindowsMRNavigationGestureEvent is received by the gestures subsystem.

    Declaration
    public event Action<WindowsMRNavigationGestureEvent> onNavigationChanged
    Event Type
    Type Description
    Action<WindowsMRNavigationGestureEvent>

    onTappedChanged

    This event is invoked whenever a WindowsMRTappedGestureEvent is received by the gestures subsystem.

    Declaration
    public event Action<WindowsMRTappedGestureEvent> onTappedChanged
    Event Type
    Type Description
    Action<WindowsMRTappedGestureEvent>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023