|
enum | JoinType |
|
enum | BezierType |
|
|
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...
|
|
|
JoinType | LineJoins = JoinType.Bevel |
|
BezierType | BezierMode = BezierType.None |
|
bool | drivenExternally = false |
|
|
override void | UpdateMaterial () |
| Update the renderer's material.
|
|
override void | OnPopulateMesh (VertexHelper vh) |
|
UIVertex[] | SetVbo (Vector2[] vertices, Vector2[] uvs) |
|
void | GeneratedUVs () |
|
|
static Material | s_ETC1DefaultUI = null |
|
|
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.
|
|
◆ 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
-
p1 | Starting postion |
p2 | End position |
p3 | Desired / 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
-
index | Requied 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
-
index | Requied Index of the point, starting from point 1 |
segmentIndex | Required 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:
- /github/workspace/src/UnityTools.App.Dev/Assets/Plugins/TesseractTools/DebugUtils/Runtime/Scripts/UILineRenderer.cs