Cursor3D.cs
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).
Type: Holoplay
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.
Type: bool
If true, the computer OS cursor is disabled and the user will only see the one generated in Unity
Type: bool
Whether the 3D cursor should scale with Holoplay
Type: GameObject
Cursor for 2D UI
Type: bool
When true, renders the cursor from
uiCursor
on a 2D canvas.Returns: Vector3
Returns the location of the 3D cursor (in world space)
Returns: Vector3
Returns the location of the 3D cursor (in the Holoplay space)
Returns: Vector3
Returns the direction of the normal at the given point
Returns: Quaternion
Returns the rotation of the 3d Cursor (in world space)
Returns: Quaternion
Returns the rotation of the 3D Cursor (relative to the Holoplay Capture's space)
Returns: bool
Returns true if cursor is over an object
Last modified 1yr ago