Summary
Draws a line.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Containing Type
- AnimancerGUI
Syntax
public static void DrawLine(Vector2 a, Vector2 b, float width, Color color)
Remarks
Use
Animancer.Editor.AnimancerGUI.BeginTriangles(UnityEngine.Color), Animancer.Editor.AnimancerGUI.DrawLineBatched(UnityEngine.Vector2,UnityEngine.Vector2,System.Single), and Animancer.Editor.AnimancerGUI.EndTriangles
if you want to draw multiple lines more efficiently.
Parameters
| Name | Type | Description |
|---|---|---|
| a | Vector2 | |
| b | Vector2 | |
| width | float | |
| color | Color |
Return Value
| Type | Description |
|---|---|
| void |