Method TryUpdateHands
TryUpdateHands(UpdateType)
Request an update from the hand data provider. Application developers consuming hand tracking data should not call this function.
Declaration
public virtual XRHandSubsystem.UpdateSuccessFlags TryUpdateHands(XRHandSubsystem.UpdateType updateType)
Parameters
| Type | Name | Description |
|---|---|---|
| XRHandSubsystem.UpdateType | updateType | Informs the provider which kind of timing the update is being requested under. |
Returns
| Type | Description |
|---|---|
| XRHandSubsystem.UpdateSuccessFlags | Returns XRHandSubsystem.UpdateSuccessFlags to describe what data was updated successfully. |
Remarks
This function must be called by the subsystem implementation to request an update from the hand data provider.
When an update is complete, the updated data is available from the leftHand and rightHand properties. The updatedHands callback is invoked.
The update is performed immediately. If you request an update timing that occurs in the
future, for example, requesting BeforeRender from a
MonoBehaviour.Update function, then the provider predicts what the hand data
will be at the requested time.
If overriding this method in a derived type, it is expected that you
call base.TryUpdateHands(updateType) and return what it
returns.