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