MRTKRayReticleVisual Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The reticle visual for a ray interactor. This behavior takes care of aligning the reticle with a surface hit by the ray interactor.
[UnityEngine.AddComponentMenu("MRTK/Input/MRTK Ray Reticle Visual")]
[UnityEngine.DefaultExecutionOrder(101)]
public class MRTKRayReticleVisual : MixedReality.Toolkit.Input.BaseReticleVisual
[<UnityEngine.AddComponentMenu("MRTK/Input/MRTK Ray Reticle Visual")>]
[<UnityEngine.DefaultExecutionOrder(101)>]
type MRTKRayReticleVisual = class
inherit BaseReticleVisual
Public Class MRTKRayReticleVisual
Inherits BaseReticleVisual
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.DefaultExecutionOrderAttribute
Constructors
| Name | Description |
|---|---|
| MRTKRayReticleVisual() | |
Properties
| Name | Description |
|---|---|
| BaseReticle |
The reticle model to use when the interactable doesn't specify a custom one. (Inherited from BaseReticleVisual) |
| CustomReticle |
Staging area for custom reticles that interactors can attach to show unique visuals. (Inherited from BaseReticleVisual) |
| CustomReticleAttached |
Is there a custom reticle currently attached to this interactor? (Inherited from BaseReticleVisual) |
| Reticle |
The current reticle that the interactor is using. (Inherited from BaseReticleVisual) |
| ReticleRoot |
The root of the reticle visuals. (Inherited from BaseReticleVisual) |
| VisibilitySettings |
Determines whether a reticle should appear on all surfaces hit by the interactor or interactables only. |
| Visual |
Cached reference to the IReticleVisual component on Reticle. (Inherited from BaseReticleVisual) |
Methods
| Name | Description |
|---|---|
| AttachCustomReticle(GameObject) | (Inherited from BaseReticleVisual) |
| LateUpdate() |
A Unity event function that is called every frame, if this object is enabled. |
| OnDisable() |
A Unity event function that is called when the script component has been disabled. |
| OnEnable() |
A Unity event function that is called when the script component has been enabled. |
| RemoveCustomReticle() | (Inherited from BaseReticleVisual) |