public void Render(Vector3 pivotPoint, Color fillColor, Color borderLineColor, float sizeInPixels) { Camera camera = SceneViewCamera.Camera; Vector2 screenPoint = camera.WorldToScreenPoint(pivotPoint); Square2D square = new Square2D(screenPoint, sizeInPixels); GizmosEx.Render2DFilledSquare(square, fillColor); GizmosEx.Render2DSquareBorderLines(square, borderLineColor); }
public static void Render2DSquareBorderLines(Square2D square, Color color) { Render2DRectangleBorderLines(square.ToRectangle(), color); }
public static void Render2DFilledSquare(Square2D square, Color color) { Render2DFilledRectangle(square.ToRectangle(), color); }