void
SolidRectangle
(
)
Draws a solid rectangle.
The rectangle corners are assumed to be in XY space. This is particularly useful when combined with InScreenSpace.
Behind the scenes this is implemented using SolidPlane.
using (Draw.InScreenSpace(Camera.main)) {
Draw.xy.SolidRectangle(new Rect(10, 10, 100, 100), Color.black);
}