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

RB.DrawLine

Method  -  Static

public static void DrawLine(Vector2i p0, Vector2i p1, Color32 color)
public static void DrawLine(Vector2i p0, Vector2i p1, int thickness, Color32 color)
public static void DrawLine(Vector2i p0, Vector2i p1, Color32 color, Vector2i pivot, float rotation)

Parameters

p0 Vector2i One end of the line
p1 Vector2i The other end of the line
color Color32 Color
thickness int Thickness of the line
pivot Vector2i Pivot point
rotation float Rotation in degrees, specified as an offset from the top left corner of an imaginary rectangle that would encompass the line

Returns

Nothing.

Description

Draw a line from point p0 to point p1 with the given color.

Optionally a pivot point, and rotation angle in degrees can also be specified.

Example

void Render() {
    RB.DrawLine(new Vector2i(10050), new Vector2i(15075), Color.green));
}

See Docs

Features - Primitives