Tesseract Tools - Documentation  UnityTools
Professional grade GameDev tools
Loading...
Searching...
No Matches
TesseractTools.UI.UILineRenderer Class Reference
Inheritance diagram for TesseractTools.UI.UILineRenderer:

Public Types

enum  JoinType
 
enum  BezierType
 

Public Member Functions

Vector2 GetPosition (int index, int segmentIndex=0)
 Get the Vector2 position of a line index More...
 
Vector2 GetPositionBySegment (int index, int segment)
 Get the Vector2 position of a line within a specific segment More...
 
Vector2 GetClosestPoint (Vector2 p1, Vector2 p2, Vector2 p3)
 Get the closest point between two given Vector2s from a given Vector2 point More...
 

Public Attributes

JoinType LineJoins = JoinType.Bevel
 
BezierType BezierMode = BezierType.None
 
bool drivenExternally = false
 

Protected Member Functions

override void UpdateMaterial ()
 Update the renderer's material.
 
override void OnPopulateMesh (VertexHelper vh)
 
UIVertex[] SetVbo (Vector2[] vertices, Vector2[] uvs)
 
void GeneratedUVs ()
 

Static Protected Attributes

static Material s_ETC1DefaultUI = null
 

Properties

override Material material [get, set]
 The specified Material used by this Image. The default Material is used instead if one wasn't specified.
 
static Material defaultETC1GraphicMaterial [get]
 
override Texture mainTexture [get]
 Image's texture comes from the UnityEngine.Image.
 
Sprite sprite [get, set]
 
Sprite overrideSprite [get, set]
 
float LineThickness [get, set]
 
bool RelativeSize [get, set]
 
bool LineList [get, set]
 
bool LineCaps [get, set]
 
int BezierSegmentsPerCurve [get, set]
 
Vector2[] Points [get, set]
 Points to be drawn in the line.
 
List< Vector2[]> Segments [get, set]
 List of Segments to be drawn.
 

Member Function Documentation

◆ GetClosestPoint()

Vector2 TesseractTools.UI.UILineRenderer.GetClosestPoint ( Vector2  p1,
Vector2  p2,
Vector2  p3 
)

Get the closest point between two given Vector2s from a given Vector2 point

Parameters
p1Starting postion
p2End position
p3Desired / Selected point
Returns
Closest Vector2 position of the target within UI Space

◆ GetPosition()

Vector2 TesseractTools.UI.UILineRenderer.GetPosition ( int  index,
int  segmentIndex = 0 
)

Get the Vector2 position of a line index

Positive numbers should be used to specify Index and Segment

Parameters
indexRequied Index of the point, starting from point 1
segmentIndex(optional) Required Segment the point is held in, Starting from Segment 1
Returns
Vector2 position of the point within UI Space

◆ GetPositionBySegment()

Vector2 TesseractTools.UI.UILineRenderer.GetPositionBySegment ( int  index,
int  segment 
)

Get the Vector2 position of a line within a specific segment

Parameters
indexRequied Index of the point, starting from point 1
segmentIndexRequired Segment the point is held in, Starting from Segment 1
Returns
Vector2 position of the point within UI Space

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