docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface ILineRenderable

    Get line points and hit point info for rendering.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public interface ILineRenderable

    Methods

    Name Description
    GetLinePoints(ref Vector3[], out int)

    Gets the polygonal chain represented by a list of endpoints which form line segments to approximate the curve. Positions are in world space coordinates.

    TryGetHitInfo(out Vector3, out Vector3, out int, out bool)

    Gets the current ray cast hit information, if a hit occurs. It returns the world position and the normal vector of the hit point, and its position in linePoints.

    See Also

    XRInteractorLineVisual
    XRRayInteractor
    In This Article
    Back to top
    Copyright © 2023 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)