drawUIRectangle
Script::drawUIRectangle
Draws a rectangle on the User Interface.
Declaration
void drawUIRectangle(CoordinateType coordinateType, const Math::vec2& position, const Math::vec2& size, const Math::vec4& color = Math::vec4(1.0f, 1.0f, 1.0f, 1.0f));
Parameters
Name |
Type |
Description |
|---|---|---|
coordinateType |
The coordinate type used by |
|
position |
const Math::vec2& |
The position of the top-left corner of the rectangle. |
size |
const Math::vec2& |
The size of the rectangle. |
color |
const Math::vec4& |
The color and opacity of the rectangle. |
Returns
None.