Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.DrawStraightLine Class Reference

Static Public Member Functions

static void Draw (Vector2 pointA, Vector2 pointB, Color color, float width, bool antiAlias)
 Draws a line between two points.
static void DrawBox (Rect rect, Color color, float width, bool antiAlias, int offset)

Detailed Description

A class that provides line-drawing functions.

Member Function Documentation

◆ Draw()

void AC.DrawStraightLine.Draw ( Vector2 pointA,
Vector2 pointB,
Color color,
float width,
bool antiAlias )
static

Draws a line between two points.

Parameters
pointAThe location of the first point
pointBThe location of the second point
colorThe colour of the line
widthThe width of the line
antiAliasTrue if the line should be anti-aliased

◆ DrawBox()

void AC.DrawStraightLine.DrawBox ( Rect rect,
Color color,
float width,
bool antiAlias,
int offset )
static

Draws a box around a rectangle.

Parameters
rectThe Rect to draw around
colorThe colour of the line
widthThe width of the line
antiAliasTrue if the line should be anti-aliased
offsetThe distance between the line and the rectangle