docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRGestureSubsystem.Provider

    Provider to be implemented for XRGestureSubsystem.

    Inheritance
    object
    SubsystemProvider
    SubsystemProvider<XRGestureSubsystem>
    XRGestureSubsystem.Provider
    XRGestureSubsystemTest.XRGestureSubsystemTestProvider
    Inherited Members
    SubsystemProvider<XRGestureSubsystem>.TryInitialize()
    SubsystemProvider<XRGestureSubsystem>.Start()
    SubsystemProvider<XRGestureSubsystem>.Stop()
    SubsystemProvider.running
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.InteractionSubsystems
    Assembly: Unity.XR.InteractionSubsystems.dll
    Syntax
    public abstract class XRGestureSubsystem.Provider : SubsystemProvider<XRGestureSubsystem>

    Fields

    m_ActivateGestureEvents

    Container for the current Gesture Events.

    Declaration
    protected NativeArray<ActivateGestureEvent> m_ActivateGestureEvents
    Field Value
    Type Description
    NativeArray<ActivateGestureEvent>

    Properties

    activateGestureEvents

    Current Gesture Events. Note: Should we be considering a reallocation if the subsystem is stopped and restarted without destroying? The current behaviour is to keep the events in memory. For now, we'll leave it as it was originally designed. But we should keep an eye on this.

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

    Methods

    Destroy()

    Declaration
    public override void Destroy()
    Overrides
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.InteractionSubsystems.XRGestureSubsystem>.Destroy()

    ~Provider()

    Ensuring that the NativeArray is cleaned up.

    Declaration
    protected ~Provider()

    Update()

    Implement the update method for Update events.

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