docs.unity3d.com
    Show / Hide Table of Contents

    Interface IXRReticleDirectionProvider

    An interface that provides the rotation of a reticle to match an interactor's attach transform.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public interface IXRReticleDirectionProvider

    Methods

    GetReticleDirection(IXRInteractor, Vector3, out Vector3, out Nullable<Vector3>)

    Get the reticle direction based on the given interactor's attach transform.

    Declaration
    void GetReticleDirection(IXRInteractor interactor, Vector3 hitNormal, out Vector3 reticleUp, out Vector3? optionalReticleForward)
    Parameters
    Type Name Description
    IXRInteractor interactor

    The interactor whose attach transform determines the reticle direction.

    Vector3 hitNormal

    The normal of the surface the reticle is placed on. This is the default value for reticleUp if the provider does not specify up directionality.

    Vector3 reticleUp

    The returned up direction of the reticle.

    Nullable<Vector3> optionalReticleForward

    The returned forward direction of the reticle. This will be null if the provider does not specify forward directionality.

    Back to top
    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