예제 #1
0
        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);
        }
예제 #2
0
 public static void Render2DSquareBorderLines(Square2D square, Color color)
 {
     Render2DRectangleBorderLines(square.ToRectangle(), color);
 }
예제 #3
0
 public static void Render2DFilledSquare(Square2D square, Color color)
 {
     Render2DFilledRectangle(square.ToRectangle(), color);
 }