Edit

Bagikan melalui


PointerUtils.TryGetHandRayEndPoint(Handedness, Vector3) Method

Definition

Tries to get the end point of a hand ray. If no hand ray of given handedness is found, returns false and sets result to zero.

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

Parameters

handedness
Handedness

Handedness of ray

endPoint
UnityEngine.Vector3

The output position

Returns

True if pointer found, false otherwise. If not found, endPoint is set to zero

Applies to