Class XRHandProviderUtility.SubsystemUpdater
Use this with your provider (if hand-tracking is enabled in your
build settings) to have the subsystem automatically update. Users
can subscribe to handsUpdated to
respond to updates instead of waiting until a following update step.
Makes use of UnityEngine.LowLevel.PlayerLoop
to insert this
automatic update at the beginning of the EarlyUpdate.XRUpdate
loop.
Inherited Members
Namespace: UnityEngine.XR.Hands.ProviderImplementation
Syntax
public class SubsystemUpdater
Remarks
If the Input System backend is enabled, this will also create and XRHandDevices which update themselves from the handsUpdated callback.
Constructors
SubsystemUpdater(XRHandSubsystem)
Initializes and returns an instance of XRHandProviderUtility.SubsystemUpdater. You should create this in your plug-in once the XRHandSubsystem is created.
Declaration
public SubsystemUpdater(XRHandSubsystem subsystem)
Parameters
Type | Name | Description |
---|---|---|
XRHandSubsystem | subsystem | The XRHandSubsystem to update automatically. |
Methods
Destroy()
Destroys the automatic updating of the XRHandSubsystem.
You should call this from your plug-in when calling Destroy
on the subsystem.
Declaration
public void Destroy()
Start()
Starts the automatic updating of the XRHandSubsystem.
You should call this from your plug-in when calling Start
on the subsystem.
Declaration
public void Start()
Stop()
Stops the automatic updating of the XRHandSubsystem.
You should call this from your plug-in when calling Stop
on the subsystem.
Declaration
public void Stop()