Interface IXRInteractableCustomReticle
Interface for a component on a customReticle for an interactable.
Namespace: UnityEngine.XR.Interaction.Toolkit.Interactables.Visuals
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public interface IXRInteractableCustomReticle
Methods
OnReticleAttached(XRBaseInteractable, IXRCustomReticleProvider)
Called by the interactable after it instantiates the custom reticle and attaches it
to the reticleProvider.
Declaration
void OnReticleAttached(XRBaseInteractable interactable, IXRCustomReticleProvider reticleProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| XRBaseInteractable | interactable | The interactable that instantiated the custom reticle. |
| IXRCustomReticleProvider | reticleProvider | The object to which the custom reticle was attached. |
OnReticleDetaching()
Called by the interactable before it detaches the custom reticle and destroys it.
Declaration
void OnReticleDetaching()