private void DrawBackground() { _draw.DrawInInspector(_rect, () => { GLUtil.DrawRect(_rect, new Color(0.32f, 0.32f, 0.32f)); }); }
private void DrawShape(Vector2[] drawPoints) { _draw.DrawInInspector(_rect, () => { GLUtil.DrawLineStrip(drawPoints, new Color(0.66f, 0.66f, 0.66f), true); }); }
private void DrawPoints(Vector2[] drawPoints) { foreach (Vector2 drawPoint in drawPoints) { _draw.DrawInInspector(_rect, () => { Rect point = new Rect(Vector2.zero, Vector2.one * 4) { center = drawPoint }; GLUtil.DrawHollowRect(point, Color.white); }); } }