Meta SDK2 Beta  2.7.0
Meta.HandInput.HandData Class Reference
Inheritance diagram for Meta.HandInput.HandData:
Meta.HandInput.IInteractionController

Public Member Functions

 HandData ()
 
void UpdateHand (types.fbs.HandData? cocoHand)
 Applies hand properties from input types.fbs.HandData to current hand. More...
 
void UpdateEvents ()
 Fires all hand related events. Called after all hands in view are updated. More...
 
override string ToString ()
 

Public Attributes

System.Action OnEnterFrame
 Event to get fired whenever the hand has entered the camera's view. /// More...
 
System.Action OnExitFrame
 Event to get fired whenever the hand has left the camera's view. /// More...
 
System.Action OnTrackingLost
 Event to get fired whenever the tracking of the hand is lost. /// More...
 
System.Action OnTrackingRecovered
 Event to get fired whenever the tracking of the hand is recovered. /// More...
 

Properties

int UniqueId [get]
 Unique id for hand More...
 
Vector3 Top [get]
 Hand's top point More...
 
Vector3 Palm [get]
 Hand's palm anchor More...
 
Vector3 GrabAnchor [get]
 Hand's grab anchor More...
 
bool IsGrasping [get]
 Hand's grab value More...
 
HandType HandType [get]
 hand's HandType More...
 
bool IsTracked [get]
 Is the hand visible is the cameras view. More...
 
int HandId [get]
 Unique id for hand More...
 
Vector3 Position [get]
 
Quaternion Rotation [get]
 
ControllerType ControllerType [get]
 
- Properties inherited from Meta.HandInput.IInteractionController
int UniqueId [get]
 
bool IsTracked [get]
 
bool IsGrasping [get]
 
Vector3 Position [get]
 
Quaternion Rotation [get]
 
ControllerType ControllerType [get]
 

Events

Action OnUpdated = () => { }
 

Constructor & Destructor Documentation

◆ HandData()

Meta.HandInput.HandData.HandData ( )
inline

Member Function Documentation

◆ ToString()

override string Meta.HandInput.HandData.ToString ( )
inline

◆ UpdateEvents()

void Meta.HandInput.HandData.UpdateEvents ( )
inline

Fires all hand related events. Called after all hands in view are updated.

◆ UpdateHand()

void Meta.HandInput.HandData.UpdateHand ( types.fbs.HandData cocoHand)
inline

Applies hand properties from input types.fbs.HandData to current hand.

Member Data Documentation

◆ OnEnterFrame

System.Action Meta.HandInput.HandData.OnEnterFrame

Event to get fired whenever the hand has entered the camera's view. ///

◆ OnExitFrame

System.Action Meta.HandInput.HandData.OnExitFrame

Event to get fired whenever the hand has left the camera's view. ///

◆ OnTrackingLost

System.Action Meta.HandInput.HandData.OnTrackingLost

Event to get fired whenever the tracking of the hand is lost. ///

◆ OnTrackingRecovered

System.Action Meta.HandInput.HandData.OnTrackingRecovered

Event to get fired whenever the tracking of the hand is recovered. ///

Property Documentation

◆ ControllerType

ControllerType Meta.HandInput.HandData.ControllerType
get

◆ GrabAnchor

Vector3 Meta.HandInput.HandData.GrabAnchor
get

Hand's grab anchor

◆ HandId

int Meta.HandInput.HandData.HandId
get

Unique id for hand

◆ HandType

HandType Meta.HandInput.HandData.HandType
get

hand's HandType

◆ IsGrasping

bool Meta.HandInput.HandData.IsGrasping
get

Hand's grab value

◆ IsTracked

bool Meta.HandInput.HandData.IsTracked
get

Is the hand visible is the cameras view.

◆ Palm

Vector3 Meta.HandInput.HandData.Palm
get

Hand's palm anchor

◆ Position

Vector3 Meta.HandInput.HandData.Position
get

◆ Rotation

Quaternion Meta.HandInput.HandData.Rotation
get

◆ Top

Vector3 Meta.HandInput.HandData.Top
get

Hand's top point

◆ UniqueId

int Meta.HandInput.HandData.UniqueId
get

Unique id for hand

Event Documentation

◆ OnUpdated

Action Meta.HandInput.HandData.OnUpdated = () => { }