docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetLineOriginAndDirection

    GetLineOriginAndDirection(out Vector3, out Vector3)

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

    Declaration
    public void GetLineOriginAndDirection(out Vector3 origin, out Vector3 direction)
    Parameters
    Type Name Description
    Vector3 origin

    Point in space where the line originates from.

    Vector3 direction

    Direction vector used to draw line.

    Implements
    IAdvancedLineRenderable.GetLineOriginAndDirection(out Vector3, out Vector3)
    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)