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

ShapeRecognizerActiveState Class

Extends MonoBehaviour
Used during hand pose detection to compare the current state of a hand's fingers to the state required by a given shape.
The shape's required state is defined in a <cref="ShapeRecognizer" />. If the two match, this state becomes active.

Protected Fields

FingerFeatureStateProvider : IFingerFeatureStateProvider
Signature
IFingerFeatureStateProvider Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.FingerFeatureStateProvider

Properties

Active : bool
[Get]
Signature
bool Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.Active
Hand : IHand
[Get]
Signature
IHand Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.Hand
Handedness : Handedness
[Get]
Signature
Handedness Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.Handedness
Shapes : IReadOnlyList< ShapeRecognizer >
[Get]
Signature
IReadOnlyList<ShapeRecognizer> Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.Shapes

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.Start()
Returns
void

Methods

InjectAllShapeRecognizerActiveState ( hand , fingerFeatureStateProvider , shapes )
Signature
void Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.InjectAllShapeRecognizerActiveState(IHand hand, IFingerFeatureStateProvider fingerFeatureStateProvider, ShapeRecognizer[] shapes)
Parameters
hand: IHand
fingerFeatureStateProvider: IFingerFeatureStateProvider
shapes: ShapeRecognizer[]
Returns
void
InjectFingerFeatureStateProvider ( fingerFeatureStateProvider )
Signature
void Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.InjectFingerFeatureStateProvider(IFingerFeatureStateProvider fingerFeatureStateProvider)
Parameters
fingerFeatureStateProvider: IFingerFeatureStateProvider
Returns
void
InjectHand ( hand )
Signature
void Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectShapes ( shapes )
Signature
void Oculus.Interaction.PoseDetection.ShapeRecognizerActiveState.InjectShapes(ShapeRecognizer[] shapes)
Parameters
shapes: ShapeRecognizer[]
Returns
void