/// <summary> /// Draws a rectangle based on a Rect and color /// </summary> /// <param name="rectangle">Rectangle.</param> /// <param name="color">Color.</param> public static void DrawRectangle(Rect rectangle, Color color) { Vector3 pos = new Vector3(rectangle.x + rectangle.width / 2, rectangle.y + rectangle.height / 2, 0.0f); Vector3 scale = new Vector3(rectangle.width, rectangle.height, 0.0f); MMDebug.DrawRectangle(pos, color, scale); }