Bearbeiten

Freigeben über


InputRayUtils.TryGetMotionControllerRay(Handedness, Ray) Method

Definition

Gets the ray associated with the motion controller.

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

Parameters

hand
Handedness

The handedness of the motion controller

ray
UnityEngine.Ray

The ray being returned

Returns

True if the ray is being returned, false otherwise.

Applies to