void DrawRect (in Rect rect, in Color color, in Vector4 cornerRadius, in Vector4 borderWidth, in Color borderColor)

Parameters

NameTypeDescription
in rect Rect The rectangle to draw.
in color Color The fill color of the rectangle.
in cornerRadius = null Vector4 Corner radii as (bottom-right, top-right, bottom-left, top-left). Radii too big for the rect are scaled to fit, like CSS.
in borderWidth = null Vector4 The width of the border for each edge (optional).
in borderColor = null Color The color of the border (optional).
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.