DrawRectangle() public static method

public static DrawRectangle ( Vector3 worldPosition1, Vector3 worldPosition2, Color color ) : void
worldPosition1 Vector3
worldPosition2 Vector3
color Color
return void
Beispiel #1
0
 private void DrawGizmo(RagePixelState state)
 {
     Utility.DrawRectangle(
         Utility.PixelToWorld(default(Vector2Int), state.Transform, state.Sprite, false),
         Utility.PixelToWorld(_size, state.Transform, state.Sprite, false), Color.white
         );
 }
Beispiel #2
0
 private void DrawGizmo(RagePixelState state)
 {
     Utility.DrawRectangle(
         Utility.PixelToWorld(default(IntVector2), state.transform, state.sprite, false),
         Utility.PixelToWorld(m_Size, state.transform, state.sprite, false), Color.white
         );
 }
Beispiel #3
0
        public void OnRepaint(RagePixelState state)
        {
            if (!active)
            {
                return;
            }

            state.DrawSpriteBounds();

            Rect r = rect;

            Utility.DrawRectangle(
                Utility.PixelToWorld(new IntVector2(r.xMin, r.yMin), state.transform, state.sprite, false),
                Utility.PixelToWorld(new IntVector2(r.xMax + 1, r.yMax + 1), state.transform, state.sprite, false),
                Color.white
                );
        }
Beispiel #4
0
        public void OnRepaint(RagePixelState state)
        {
            if (!Active)
            {
                return;
            }

            state.DrawSpriteBounds();

            Rect r = Rect;

            Utility.DrawRectangle(
                Utility.PixelToWorld(new Vector2Int((int)r.xMin, (int)r.yMin), state.Transform, state.Sprite, false),
                Utility.PixelToWorld(new Vector2Int((int)r.xMax + 1, (int)r.yMax + 1), state.Transform, state.Sprite, false),
                Color.white
                );
        }
 private void DrawMarquee()
 {
     Utility.DrawRectangle(WorldMinPointSnapped, WorldMaxPointSnapped, Color.white);
 }