RB.DrawRect
Method - Static
public static void DrawRect(Rect2i rect, Color32 color)
|
public static void DrawRect(Rect2i rect, Color32 color, Vector2i pivot, float rotation)
|
Parameters
rect
|
Rect2i
|
Rectangular area
|
color
|
Color32
|
Color
|
pivot
|
Vector2i
|
Rotation pivot point, specified as an offset from the rectangle's top left corner
|
rotation
|
float
|
Rotation in degrees
|
Returns
Nothing.
Description
Draw a rectangle outline to the display with the given color, and dimensions given by rect.
Optionally a pivot point, and rotation angle in degrees can also be specified.
Example
See Also
RB.DrawRectFill
See Docs
Features - Primitives
|