編集

次の方法で共有


GazeHandHelper.TryGetHandPosition Method

Definition

Overloads

TryGetHandPosition(Handedness, Vector3)

TryGet style function to return HandPosition of a certain handedness if available.

TryGetHandPosition(UInt32, Vector3)

TryGet style function to return HandPosition of a certain sourceId if available.

TryGetHandPosition(Handedness, Vector3)

TryGet style function to return HandPosition of a certain handedness if available.

public:
 bool TryGetHandPosition(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, [Runtime::InteropServices::Out] UnityEngine::Vector3 % position);
public bool TryGetHandPosition (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, out UnityEngine.Vector3 position);
member this.TryGetHandPosition : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Vector3 -> bool
Public Function TryGetHandPosition (handedness As Handedness, ByRef position As Vector3) As Boolean

Parameters

handedness
Handedness

asks for left or right hand or either

position
UnityEngine.Vector3

out value that gets filled with a Vector3 representing position

Returns

true or false- whether the hand existed

Applies to

TryGetHandPosition(UInt32, Vector3)

TryGet style function to return HandPosition of a certain sourceId if available.

public:
 bool TryGetHandPosition(System::UInt32 id, [Runtime::InteropServices::Out] UnityEngine::Vector3 % handPosition);
public bool TryGetHandPosition (uint id, out UnityEngine.Vector3 handPosition);
member this.TryGetHandPosition : uint32 * Vector3 -> bool
Public Function TryGetHandPosition (id As UInteger, ByRef handPosition As Vector3) As Boolean

Parameters

id
UInt32

asks for the hand position associated with a certain IMixedRealityInputSource id

handPosition
UnityEngine.Vector3

out value that gets filled with a Vector3 representing position

Returns

true or false- whether the hand existed

Applies to