Skip to main content

Pointer Manager

PointerManager

Responsible to:

  1. Make sure that at least one ray cast is available in the scene for interaction whenever required
  2. Create focus details
  3. Will drive pointer prefab on data

The pointer manager is the bridge that handles different types of pointing sources - head cursor or pointing ray-enabled motion controllers.

warning

If you don't have pointing ray-enabled controllers, it defaults to GazeManager.

Enable and Disable Pointer

If you want to enable/disable the pointer and its interaction, you can use:

bool enableInteraction;
JMRPointerManager.Instance.ToggleInteraction(enableInteraction, JMRPointerManager.PointingSource.Head);
Public MethodsDescription
GetHitInfoReturns the HitInfo of the current Hit, if any.
GetCurrentFocusedObjectGets currently focused object, if any
GetCursorGets the Cursor object associated with this pointer
GetCurrentRayGets the current ray
GetCursorTransformGets the transform of the cursor. This is the transform of the white dot that users use to interact with objects.

Gaze and Dwell