Edit

Share via


PointerUtils Class

Definition

public ref class PointerUtils abstract sealed
public static class PointerUtils
type PointerUtils = class
Public Class PointerUtils
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