docs.unity3d.com
    Show / Hide Table of Contents

    Class WindowsMRGestureSubsystem

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

    Inheritance
    Object
    WindowsMRGestureSubsystem
    Namespace: UnityEngine.XR.WindowsMR
    Syntax
    public sealed class WindowsMRGestureSubsystem : XRGestureSubsystem

    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 Provider CreateProvider()
    Returns
    Type Description
    Provider

    The provider interface for WindowsMR

    SetEnableManipulationGesture(Boolean)

    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
    Boolean enable

    true if manipulation gesture should be enabled, else false.

    Returns
    Type Description
    Boolean

    true if the gesture was enabled, else false

    SetEnableNavigationGesture(Boolean)

    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
    Boolean enable

    true if navigation gesture should be enabled, else false.

    Returns
    Type Description
    Boolean

    true if the gesture was enabled, else false

    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