PointerUtils Class

Definition

C++
public ref class PointerUtils abstract sealed
Inheritance
PointerUtils

Methods

GetPointer<T>(Handedness)

Find the first detected pointer of the given type with matching handedness.

GetPointerBehavior<T>(Handedness, InputSourceType)

Queries input system for the behavior of a given pointer type. See .

GetPointers()

Iterate over all pointers in the input system. May contain duplicates.

GetPointers<T>(Handedness, InputSourceType)

Returns all pointers with given handedness and input type.

GetPointers<T>(Handedness)

Returns iterator over all pointers of specific type, with specific handedness.

SetGazePointerBehavior(PointerBehavior)

Sets the behavior for the gaze pointer.

SetHandGrabPointerBehavior(PointerBehavior, Handedness)

Sets the behavior for the grab pointer with given handedness.

SetHandPokePointerBehavior(PointerBehavior, Handedness)

Sets the behavior for the poke pointer with given handedness.

SetHandRayPointerBehavior(PointerBehavior, Handedness)

Sets the behavior for the hand ray with given handedness

SetMotionControllerRayPointerBehavior(PointerBehavior, Handedness)

Sets the behavior for the motion controller ray with given handedness

SetPointerBehavior<T>(PointerBehavior, Handedness)

Sets the pointer behavior for pointer of type T, for all input types.

SetPointerBehavior<T>(PointerBehavior, InputSourceType, Handedness)

Sets the behavior for the given pointer type and input type.

TryGetHandRayEndPoint(Handedness, Vector3)

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.

TryGetMotionControllerEndPoint(Handedness, Vector3)

Tries to get the end point of a motion controller. 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.

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0