Stay organized with collections
Save and categorize content based on your preferences.
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
LayerMask ReticleInteractionLayerMask = 1 << _RETICLE_INTERACTION_DEFAULT_LAYER
Mask used to indicate interactive objects.
ReticleSortingOrder
int ReticleSortingOrder = 32767
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eCardboardReticlePointer draws a circular reticle that visually indicates the object the user is currently focusing on.\u003c/p\u003e\n"],["\u003cp\u003eThe reticle provides feedback by dilating when pointed at objects designated as interactive using the \u003ccode\u003eReticleInteractionLayerMask\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize the reticle's visual priority by adjusting the \u003ccode\u003eReticleSortingOrder\u003c/code\u003e to control its layering in the scene.\u003c/p\u003e\n"]]],[],null,["# CardboardReticlePointer Class Reference\n\nCardboardReticlePointer\n=======================\n\nDraws a circular reticle in front of any object that the user points at.\n\nSummary\n-------\n\nSends messages to gazed GameObject. The reticle dilates if the object has an interactive layer.\n\n### Inheritance\n\nInherits from: MonoBehaviour\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|\n| [ReticleInteractionLayerMask](#classCardboardReticlePointer_1a5376d4e2e77a1427291b347da7eb59e6)` = 1 \u003c\u003c _RETICLE_INTERACTION_DEFAULT_LAYER` | `LayerMask` Mask used to indicate interactive objects. |\n| [ReticleSortingOrder](#classCardboardReticlePointer_1ae816b07dbd6d58999b3499b9253fb783)` = 32767` | `int` Sorting order to use for the reticle's renderer. |\n\nPublic attributes\n-----------------\n\n### ReticleInteractionLayerMask\n\n```c#\nLayerMask ReticleInteractionLayerMask = 1 \u003c\u003c _RETICLE_INTERACTION_DEFAULT_LAYER\n``` \nMask used to indicate interactive objects. \n\n### ReticleSortingOrder\n\n```c#\nint ReticleSortingOrder = 32767\n``` \nSorting order to use for the reticle's renderer.\n\nRange values come from \u003chttps://docs.unity3d.com/ScriptReference/Renderer-sortingOrder.html\u003e.\n\nDefault value 32767 ensures gaze reticle is always rendered on top."]]