API reference
API reference
Select your platform
No SDKs available
No versions available

HandTrackingConfidenceProvider Class

Extends MonoBehaviour
Exposes a hand tracking confidence value for an interactor.
An IInteractor can be associated with a IHand with this component, this confidence status can be fetched using an IInteractorView.Identifier as a key.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.HandTrackingConfidenceProvider._started

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.HandTrackingConfidenceProvider.Awake()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.HandTrackingConfidenceProvider.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.HandTrackingConfidenceProvider.OnEnable()
Returns
void
Reset ()
Signature
virtual void Oculus.Interaction.HandTrackingConfidenceProvider.Reset()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.HandTrackingConfidenceProvider.Start()
Returns
void

Methods

InjectAllHandTrackingConfidenceProvider ( interactor , hand )
Injects all required dependencies for a dynamically instantiated HandTrackingConfidenceProvider.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.HandTrackingConfidenceProvider.InjectAllHandTrackingConfidenceProvider(IInteractor interactor, IHand hand)
Parameters
interactor: IInteractor
hand: IHand
Returns
void
InjectHand ( hand )
Sets the underlying IHand for a dynamically instantiated HandTrackingConfidenceProvider.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.HandTrackingConfidenceProvider.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectInteractor ( interactor )
Sets the underlying IInteractor for a dynamically instantiated HandTrackingConfidenceProvider.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.HandTrackingConfidenceProvider.InjectInteractor(IInteractor interactor)
Parameters
interactor: IInteractor
Returns
void

Static Methods

TryGetTrackingConfidence ( key , isTrackingHighConfidence )
Retrieves the IHand.IsHighConfidence value for the IHand associated with the provided IInteractorView.Identifier, if present.
Signature
static bool Oculus.Interaction.HandTrackingConfidenceProvider.TryGetTrackingConfidence(int key, out bool isTrackingHighConfidence)
Parameters
key: int  The IInteractorView.Identifier of the interactor.
isTrackingHighConfidence: out bool  True if the IHand is tracked with high confidence.
Returns
bool  True if the provided interactor is associated with an IHand, and confidence value can be retrieved.