FrameIT
UILine Class Reference
Inheritance diagram for UILine:

Public Attributes

List< Vector2 > points = new()
 
float width = 5f
 
bool roundCorners = true
 
bool roundStart = false
 
bool roundEnd = false
 
bool dashed = false
 
int dashLength = 10
 
int dashSpacing = 5
 

Protected Member Functions

override void OnPopulateMesh (VertexHelper vh)
 

Static Protected Member Functions

static Vector3[] GetCirclePoints (float circleRadius, int pointCount, Vector3 offset)
 

Private Member Functions

void GenerateLinesStandard (VertexHelper vh)
 
void GenerateLinesDashed (VertexHelper vh)
 
void CreateSegment (VertexHelper vh, Vector2 start, Vector2 end)
 
void CreateCircle (VertexHelper vh, Vector2 center, float diameter, int sideCount=20)
 

Member Function Documentation

◆ CreateCircle()

void UILine.CreateCircle ( VertexHelper  vh,
Vector2  center,
float  diameter,
int  sideCount = 20 
)
private

◆ CreateSegment()

void UILine.CreateSegment ( VertexHelper  vh,
Vector2  start,
Vector2  end 
)
private

◆ GenerateLinesDashed()

void UILine.GenerateLinesDashed ( VertexHelper  vh)
private

◆ GenerateLinesStandard()

void UILine.GenerateLinesStandard ( VertexHelper  vh)
private

◆ GetCirclePoints()

static Vector3[] UILine.GetCirclePoints ( float  circleRadius,
int  pointCount,
Vector3  offset 
)
staticprotected

◆ OnPopulateMesh()

override void UILine.OnPopulateMesh ( VertexHelper  vh)
protected

Member Data Documentation

◆ dashed

bool UILine.dashed = false

◆ dashLength

int UILine.dashLength = 10

◆ dashSpacing

int UILine.dashSpacing = 5

◆ points

List<Vector2> UILine.points = new()

◆ roundCorners

bool UILine.roundCorners = true

◆ roundEnd

bool UILine.roundEnd = false

◆ roundStart

bool UILine.roundStart = false

◆ width

float UILine.width = 5f

The documentation for this class was generated from the following file: