Pointer Manager
PointerManager
Responsible to:
- Make sure that at least one ray cast is available in the scene for interaction whenever required
- Create focus details
- 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 Methods | Description |
|---|---|
| GetHitInfo | Returns the HitInfo of the current Hit, if any. |
| GetCurrentFocusedObject | Gets currently focused object, if any |
| GetCursor | Gets the Cursor object associated with this pointer |
| GetCurrentRay | Gets the current ray |
| GetCursorTransform | Gets the transform of the cursor. This is the transform of the white dot that users use to interact with objects. |