Class XRGestureSubsystem
This class controls the lifecycle of an XR Gesture subsystem.
Implements
Inherited Members
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
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
Start()
Starts or resumes the Gesture subsystem.
Declaration
public override sealed void Start()
Overrides
Stop()
Pauses the Gesture subsystem.
Declaration
public override sealed void Stop()
Overrides
Update()
Trigger the Gesture's update loop.
Declaration
public void Update()