Bearbeiten

Freigeben über


InputRayUtils.TryGetRay(InputSourceType, Handedness, Ray) Method

Definition

Gets the ray associated with the desired input source type and hand.

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

Parameters

sourceType
InputSourceType

The type of input source

hand
Handedness

The handedness of the input source

ray
UnityEngine.Ray

The ray being returned

Returns

True if the ray is being returned, false otherwise.

Applies to