docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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()
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)