TextureDraw
Public Functions
Name | |
---|---|
void | SetTarget(Texture2D texture) |
void | Clear() |
void | DrawCross(Vector2 pos, int length, Color32 color) |
void | DrawCross(Vector2Int pos, int length, Color32 color) |
void | DrawFilledRect(Vector2Int pos, int size, Color32 color) |
void | DrawRect(Vector2 center, float size, Color32 color) |
void | SetPixel(Vector2 pos, Color32 c) |
void | AddPixel(Vector2 pos, Color c, float lerp) |
void | DrawHorizontalLine(Vector2 pos, int length, Color32 c) |
void | DrawVerticalLine(Vector2Int pos, int length, Color32 c) |
void | DrawLine(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 DrawFilledRect
static void DrawFilledRect(
Vector2Int pos,
int size,
Color32 color
)
function DrawRect
static void DrawRect(
Vector2 center,
float size,
Color32 color
)
function SetPixel
static void SetPixel(
Vector2 pos,
Color32 c
)
function AddPixel
static void AddPixel(
Vector2 pos,
Color c,
float lerp
)
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
)