Skip to main content

TextureDraw

Public Functions

Name
voidSetTarget(Texture2D texture)
voidClear()
voidDrawCross(Vector2 pos, int length, Color32 color)
voidDrawCross(Vector2Int pos, int length, Color32 color)
voidDrawHorizontalLine(Vector2 pos, int length, Color32 c)
voidDrawVerticalLine(Vector2Int pos, int length, Color32 c)
voidDrawLine(Vector2 start, Vector2 end, Color32 color)

Public Functions Documentation

function SetTarget

static void SetTarget(
Texture2D texture
)

function Clear

static void Clear()

function DrawCross

static void DrawCross(
Vector2 pos,
int length,
Color32 color
)

function DrawCross

static void DrawCross(
Vector2Int pos,
int length,
Color32 color
)

function DrawHorizontalLine

static void DrawHorizontalLine(
Vector2 pos,
int length,
Color32 c
)

function DrawVerticalLine

static void DrawVerticalLine(
Vector2Int pos,
int length,
Color32 c
)

function DrawLine

static void DrawLine(
Vector2 start,
Vector2 end,
Color32 color
)