Class XRGestureSubsystem
This class controls the lifecycle of an XR Gesture subsystem.
Inheritance
System.Object
XRGestureSubsystem
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
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()