API reference

TransformRecognizerActiveState Class

Extends MonoBehaviour
Implements IActiveState
Used in hand pose detection to get the current state of the hand's transforms and compares it to the required transforms.
If both match, the state is active.

Protected Fields

_started : bool
Signature
bool _started
TransformFeatureStateProvider : ITransformFeatureStateProvider
Signature
ITransformFeatureStateProvider TransformFeatureStateProvider

Properties

Active : bool
[Get]
Evaluates the current state of the component and returns whether it is active.
The logic for determining the active state is defined by the implementing class. This method is typically used in interaction scripts to check whether a certain condition is met before triggering an event or action. For example implementations, please refer to HandActiveState.Active and ActiveStateGroup.Active.
Signature
bool Active
FeatureConfigs : IReadOnlyList< TransformFeatureConfig >
[Get]
Signature
IReadOnlyList<TransformFeatureConfig> FeatureConfigs
Hand : IHand
[Get]
Signature
IHand Hand
TransformConfig : TransformConfig
[Get]
Signature
TransformConfig TransformConfig

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
OnDisable ()
Signature
virtual void OnDisable()
Returns
void
OnEnable ()
Signature
virtual void OnEnable()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

GetFeatureVectorAndWristPos ( feature , isHandVector , featureVec , wristPos )
Signature
void GetFeatureVectorAndWristPos(TransformFeature feature, bool isHandVector, ref Vector3? featureVec, ref Vector3? wristPos)
Parameters
feature: TransformFeature
isHandVector: bool
featureVec: ref Vector3?
wristPos: ref Vector3?
Returns
void
InjectAllTransformRecognizerActiveState ( hand , transformFeatureStateProvider , transformFeatureList , transformConfig )
Signature
void InjectAllTransformRecognizerActiveState(IHand hand, ITransformFeatureStateProvider transformFeatureStateProvider, TransformFeatureConfigList transformFeatureList, TransformConfig transformConfig)
Parameters
hand: IHand
transformFeatureStateProvider: ITransformFeatureStateProvider
transformFeatureList: TransformFeatureConfigList
transformConfig: TransformConfig
Returns
void
InjectHand ( hand )
Signature
void InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectTransformConfig ( transformConfig )
Signature
void InjectTransformConfig(TransformConfig transformConfig)
Parameters
transformConfig: TransformConfig
Returns
void
InjectTransformFeatureList ( transformFeatureList )
Signature
void InjectTransformFeatureList(TransformFeatureConfigList transformFeatureList)
Parameters
transformFeatureList: TransformFeatureConfigList
Returns
void
InjectTransformFeatureStateProvider ( transformFeatureStateProvider )
Signature
void InjectTransformFeatureStateProvider(ITransformFeatureStateProvider transformFeatureStateProvider)
Parameters
transformFeatureStateProvider: ITransformFeatureStateProvider
Returns
void