docs.unity3d.com
    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
    Syntax
    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
    Boolean

    Returns true if successful. Otherwise, returns false.

    RemoveCustomReticle()

    Removes a custom reticle.

    Declaration
    bool RemoveCustomReticle()
    Returns
    Type Description
    Boolean

    Returns true if successful. Otherwise, returns false.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023