With this script, you an use the cursor to point at and select objects.
The script uses depth maps to determine location. Consequently, 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" (ver 1.2 or later).
The Holoplay used to calculate depth and normals. If left blank this will autofill with the Holoplay found in the scene, if there is one.
If true, the computer OS cursor is disabled and the user will only see the one generated in Unity
Whether the 3D cursor should scale with Holoplay
Cursor for 2D UI
When true, renders the cursor from
uiCursoron a 2D canvas.
Returns the location of the 3D cursor (in world space)
Returns the location of the 3D cursor (in the Holoplay 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 Holoplay Capture's space)
Returns true if cursor is over an object