예제 #1
0
 /// <summary>
 /// Draws line on texture
 /// </summary>
 public static void DrawLine(this Texture2D texture, int x0, int y0, int x1, int y1, Color color)
 {
     PTUtils.DrawLine(x0, y0, x1, y1, (x, y) => texture.SetPixel(x, y, color));
 }
예제 #2
0
 /// <summary>
 /// Draws line on texture
 /// </summary>
 public static void DrawLine(this Texture2D texture, Vector2Int v0, Vector2Int v1, Color color)
 {
     PTUtils.DrawLine(v0, v1, (x, y) => texture.SetPixel(x, y, color));
 }