docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawLine

    DrawLine(List<ushort>, List<Vertex>, Vector2, Vector2, float, Color, Color)

    Draws a line.

    Declaration
    public static void DrawLine(List<ushort> indices, List<Vertex> vertices, Vector2 pointA, Vector2 pointB, float thickness, Color colorA, Color colorB)
    Parameters
    Type Name Description
    List<ushort> indices

    Indice list in which we'll add the line triangle indices

    List<Vertex> vertices

    Vertice list in which we'll add the line points

    Vector2 pointA

    Start point of the line

    Vector2 pointB

    Stop point of the line

    float thickness

    Line thickness

    Color colorA

    Start color for gradient

    Color colorB

    End color for gradient

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