docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRGestureSubsystem

    This class controls the lifecycle of an XR Gesture subsystem.

    Inheritance
    object
    Subsystem
    Subsystem<XRGestureSubsystemDescriptor>
    XRGestureSubsystem
    XRGestureSubsystemTest
    Implements
    ISubsystem
    Inherited Members
    Subsystem<XRGestureSubsystemDescriptor>.SubsystemDescriptor
    Subsystem.Destroy()
    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 : Subsystem<XRGestureSubsystemDescriptor>, ISubsystem

    Constructors

    XRGestureSubsystem()

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

    Declaration
    public XRGestureSubsystem()

    Properties

    activateGestureEvents

    A collection of all ActivateGestureEvents 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
    bool
    Overrides
    Subsystem.running

    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.

    OnDestroy()

    Destroys the Gesture subsystem.

    Declaration
    protected override sealed void OnDestroy()
    Overrides
    Subsystem.OnDestroy()

    Start()

    Starts or resumes the Gesture subsystem.

    Declaration
    public override sealed void Start()
    Overrides
    Subsystem.Start()

    Stop()

    Pauses the Gesture subsystem.

    Declaration
    public override sealed void Stop()
    Overrides
    Subsystem.Stop()

    Update()

    Trigger the Gesture's update loop.

    Declaration
    public void Update()

    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)