docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WindowsMRGestureSubsystem

    WindowsMR implementation of the XRGestureSubsystem. Do not create this directly. Use the SubsystemManager instead.

    Inheritance
    object
    Subsystem
    Subsystem<XRGestureSubsystemDescriptor>
    XRGestureSubsystem
    WindowsMRGestureSubsystem
    Implements
    ISubsystem
    Inherited Members
    XRGestureSubsystem.Start()
    XRGestureSubsystem.Stop()
    XRGestureSubsystem.Update()
    XRGestureSubsystem.running
    XRGestureSubsystem.activateGestureEvents
    Subsystem<XRGestureSubsystemDescriptor>.SubsystemDescriptor
    Subsystem.Destroy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.WindowsMR
    Assembly: Unity.XR.WindowsMixedReality.dll
    Syntax
    [Preserve]
    public sealed class WindowsMRGestureSubsystem : XRGestureSubsystem, ISubsystem

    Properties

    holdGestureEvents

    A collection of all WindowsMRHoldGestureEvents managed by this subsystem. This is cleared every frame and refreshed with new gesture events.

    Declaration
    public NativeArray<WindowsMRHoldGestureEvent> holdGestureEvents { get; }
    Property Value
    Type Description
    NativeArray<WindowsMRHoldGestureEvent>

    manipulationGestureEvents

    A collection of all WindowsMRManipulationGestureEvent managed by this subsystem. This is cleared every frame and refreshed with new gesture events.

    Declaration
    public NativeArray<WindowsMRManipulationGestureEvent> manipulationGestureEvents { get; }
    Property Value
    Type Description
    NativeArray<WindowsMRManipulationGestureEvent>

    navigationGestureEvents

    A collection of all WindowsMRNavigationGestureEvent managed by this subsystem. This is cleared every frame and refreshed with new gesture events.

    Declaration
    public NativeArray<WindowsMRNavigationGestureEvent> navigationGestureEvents { get; }
    Property Value
    Type Description
    NativeArray<WindowsMRNavigationGestureEvent>

    tappedGestureEvents

    A collection of all WindowsMRTappedGestureEvent managed by this subsystem. This is cleared every frame and refreshed with new gesture events.

    Declaration
    public NativeArray<WindowsMRTappedGestureEvent> tappedGestureEvents { get; }
    Property Value
    Type Description
    NativeArray<WindowsMRTappedGestureEvent>

    Methods

    CreateProvider()

    Creates the provider interface.

    Declaration
    protected override XRGestureSubsystem.Provider CreateProvider()
    Returns
    Type Description
    XRGestureSubsystem.Provider

    The provider interface for WindowsMR

    Overrides
    UnityEngine.XR.InteractionSubsystems.XRGestureSubsystem.CreateProvider()

    SetEnableManipulationGesture(bool)

    Enable the manipulation gesture. Enabling this gesture will disable the navigation gesture if it has been enabled. These gestures cannot be enabled simultaneously.

    Declaration
    public bool SetEnableManipulationGesture(bool enable)
    Parameters
    Type Name Description
    bool enable

    true if manipulation gesture should be enabled, else false.

    Returns
    Type Description
    bool

    true if the gesture was enabled, else false

    SetEnableNavigationGesture(bool)

    Enable the navigation gesture. Enabling this gesture will disable the manipulation gesture if it has been enabled. These gestures cannot be enabled simultaneously.

    Declaration
    public bool SetEnableNavigationGesture(bool enable)
    Parameters
    Type Name Description
    bool enable

    true if navigation gesture should be enabled, else false.

    Returns
    Type Description
    bool

    true if the gesture was enabled, else false

    Implements

    ISubsystem
    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)