CardboardReticlePointer

Draws a circular reticle in front of any object that the user points at.

Summary

Sends messages to gazed GameObject. The reticle dilates if the object has an interactive layer.

Inheritance

Inherits from: MonoBehaviour

Public attributes

ReticleInteractionLayerMask = 1 << _RETICLE_INTERACTION_DEFAULT_LAYER
LayerMask
Mask used to indicate interactive objects.
ReticleSortingOrder = 32767
int
Sorting order to use for the reticle's renderer.

Public attributes

ReticleInteractionLayerMask

LayerMask ReticleInteractionLayerMask = 1 << _RETICLE_INTERACTION_DEFAULT_LAYER

Mask used to indicate interactive objects.

ReticleSortingOrder

int ReticleSortingOrder = 32767

Sorting order to use for the reticle's renderer.

Range values come from https://docs.unity3d.com/ScriptReference/Renderer-sortingOrder.html.

Default value 32767 ensures gaze reticle is always rendered on top.