Class XRGestureSubsystem | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class XRGestureSubsystem

    This class controls the lifecycle of an XR Gesture subsystem.

    Inheritance
    System.Object
    XRGestureSubsystem
    XRGestureSubsystemTest
    Namespace: UnityEngine.XR.InteractionSubsystems
    Syntax
    public abstract class XRGestureSubsystem : Subsystem<XRGestureSubsystemDescriptor>

    Constructors

    XRGestureSubsystem()

    Do not call this directly. Call create on a valid XRGestureSubsystemDescriptor instead.

    Declaration
    public XRGestureSubsystem()

    Properties

    activateGestureEvents

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

    Declaration
    public NativeArray<ActivateGestureEvent> activateGestureEvents { get; }
    Property Value
    Type Description
    NativeArray<ActivateGestureEvent>

    running

    Whether the Gesture subsystem is currently running.

    Declaration
    public override sealed bool running { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    CreateProvider()

    Implement this to provide this class with an interface to platform specific implementations.

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

    An implementation specific provider.

    Destroy()

    Destroys the Gesture subsystem.

    Declaration
    public override sealed void Destroy()

    Start()

    Starts or resumes the Gesture subsystem.

    Declaration
    public override sealed void Start()

    Stop()

    Pauses the Gesture subsystem.

    Declaration
    public override sealed void Stop()

    Update()

    Trigger the Gesture's update loop.

    Declaration
    public void Update()
    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