docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRCustomReticleProvider

    An interface that allows Interactables to request that an Interactor use a custom reticle.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors.Visuals
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public interface IXRCustomReticleProvider

    Methods

    AttachCustomReticle(GameObject)

    Attaches a custom reticle.

    Declaration
    bool AttachCustomReticle(GameObject reticleInstance)
    Parameters
    Type Name Description
    GameObject reticleInstance

    Reticle GameObject that is attached.

    Returns
    Type Description
    bool

    Returns true if successful. Otherwise, returns false.

    RemoveCustomReticle()

    Removes a custom reticle.

    Declaration
    bool RemoveCustomReticle()
    Returns
    Type Description
    bool

    Returns true if successful. Otherwise, returns false.

    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)