docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawLine

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

    Draws a line.

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

    The indices.

    List<Vertex> vertices

    The vertices.

    Vector2 pointA

    The first point.

    Vector2 pointB

    The target point.

    float thickness

    The thickness.

    Color color

    The color.

    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)