Interface ILineRenderable | XR Interaction Toolkit | 0.9.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ILineRenderable

    Get line points and hit point info for rendering

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

    Methods

    GetLinePoints(ref Vector3[], ref Int32)

    Declaration
    bool GetLinePoints(ref Vector3[] linePoints, ref int noPoints)
    Parameters
    Type Name Description
    Vector3[] linePoints
    Int32 noPoints
    Returns
    Type Description
    Boolean

    TryGetHitInfo(ref Vector3, ref Vector3, ref Int32, ref Boolean)

    Declaration
    bool TryGetHitInfo(ref Vector3 position, ref Vector3 normal, ref int positionInLine, ref bool isValidTarget)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 normal
    Int32 positionInLine
    Boolean isValidTarget
    Returns
    Type Description
    Boolean
    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