This script drives the 3D Cursor prefab.
With this script, you an use the cursor to point at and select objects.
The script uses depth maps to determine location. As a result, objects with Fade and Transparent materials will not be able to be selected.
To ensure an object isn't picked up by the 3D cursor, set its layer to "Ignore Raycast.”
Disables the OS cursor at the start.
Should the cursor scale follow the size of the LookingGlass.
Game Object for the 3D Cursor.
When true, renders the cursor from uiCursor on a 2D canvas.
Returns the location of the 3D cursor (in world space).
Returns the location of the 3D cursor (in the Hologram Camera space).
Returns the direction of the normal at the given point.
Returns the rotation of the 3d Cursor (in world space).
Returns the rotation of the 3D Cursor (relative to the Hologram Camera’s space).
Returns true if cursor is over an object.
Reenable system cursor. Useful for activating from an external script when a user needs to see their cursor.
Game Object for the 2D Cursor.