Class WindowsMRGestureSubsystem | Windows XR Plugin | 4.0.2
docs.unity.cn
    Show / Hide Table of Contents

    Class WindowsMRGestureSubsystem

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

    Inheritance
    Object
    XRGestureSubsystem
    WindowsMRGestureSubsystem
    Inherited Members
    XRGestureSubsystem.Start()
    XRGestureSubsystem.Stop()
    UnityEngine.XR.InteractionSubsystems.XRGestureSubsystem.OnDestroy()
    XRGestureSubsystem.Update()
    XRGestureSubsystem.running
    XRGestureSubsystem.activateGestureEvents
    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 XRGestureSubsystem.Provider CreateProvider()
    Returns
    Type Description
    XRGestureSubsystem.Provider

    The provider interface for WindowsMR

    Overrides
    XRGestureSubsystem.CreateProvider()

    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 © 2020 Unity Technologies
    Generated by DocFX