Adventure Creator  1.68.0
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
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. More...
 
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()

static 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()

static 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