AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

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

void Render() {
    RB.DrawRect(new Rect2i(100506464), Color.blue));
}

See Also

RB.DrawRectFill

See Docs

Features - Primitives