docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface IAdvancedLineRenderable

    An advanced interface for providing line data for rendering with additional functionality.

    Inherited Members
    ILineRenderable.GetLinePoints(ref Vector3[], out int)
    ILineRenderable.TryGetHitInfo(out Vector3, out Vector3, out int, out bool)
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Assembly: solution.dll
    Syntax
    public interface IAdvancedLineRenderable : ILineRenderable

    Methods

    Name Description
    GetLineOriginAndDirection(out Vector3, out Vector3)

    Gets the line origin and direction. Origin and Direction are in world space coordinates.

    GetLinePoints(ref NativeArray<Vector3>, out int, Ray?)

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

    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)