Bearbeiten

Freigeben über


PointerUtils.TryGetPointerEndpoint Method

Definition

Overloads

TryGetPointerEndpoint<T>(Handedness, Vector3)

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

TryGetPointerEndpoint<T>(Handedness, InputSourceType, Vector3)

Tries to get the end point of a pointer by source type and handedness. If no pointer of given handedness is found, returns false and sets result to zero.

TryGetPointerEndpoint<T>(Handedness, Vector3)

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

public:
generic <typename T>
 where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer static bool TryGetPointerEndpoint(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, [Runtime::InteropServices::Out] UnityEngine::Vector3 % endPoint);
public static bool TryGetPointerEndpoint<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, out UnityEngine.Vector3 endPoint) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
static member TryGetPointerEndpoint : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Vector3 -> bool (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Shared Function TryGetPointerEndpoint(Of T As {Class, IMixedRealityPointer}) (handedness As Handedness, ByRef endPoint As Vector3) As Boolean

Type Parameters

T

Type of pointer to query

Parameters

handedness
Handedness

Handedness of pointer

endPoint
UnityEngine.Vector3

The output point position

Returns

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

Applies to

TryGetPointerEndpoint<T>(Handedness, InputSourceType, Vector3)

Tries to get the end point of a pointer by source type and handedness. If no pointer of given handedness is found, returns false and sets result to zero.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer static bool TryGetPointerEndpoint(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, Microsoft::MixedReality::Toolkit::Input::InputSourceType inputType, [Runtime::InteropServices::Out] UnityEngine::Vector3 % endPoint);
public static bool TryGetPointerEndpoint<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSourceType inputType, out UnityEngine.Vector3 endPoint) where T : Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
static member TryGetPointerEndpoint : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType * Vector3 -> bool (requires 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Shared Function TryGetPointerEndpoint(Of T As IMixedRealityPointer) (handedness As Handedness, inputType As InputSourceType, ByRef endPoint As Vector3) As Boolean

Type Parameters

T

Type of pointer to query

Parameters

handedness
Handedness

Handedness of pointer

inputType
InputSourceType

Input type of pointer

endPoint
UnityEngine.Vector3

Output point position

Returns

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

Applies to