PolygonMesh
命名空间:FairyGUI
源码:Assets/Scripts/Core/Mesh/PolygonMesh.cs (行 9)
public class PolygonMesh : IMeshFactory, IHitTest
接口:IMeshFactory, IHitTest
构造函数
PolygonMesh()
public PolygonMesh();
源码:Core/Mesh/PolygonMesh.cs (行 48)
字段
colors
public Color32[] colors;
源码:Core/Mesh/PolygonMesh.cs (行 39)
fillColor
public Color32? fillColor;
源码:Core/Mesh/PolygonMesh.cs (行 34)
lineColor
public Color32 lineColor;
源码:Core/Mesh/PolygonMesh.cs (行 29)
lineWidth
public float lineWidth;
源码:Core/Mesh/PolygonMesh.cs (行 24)
points
public readonly List<Vector2> points;
points must be in clockwise order, and must start from bottom-left if stretchUV is set.
源码:Core/Mesh/PolygonMesh.cs (行 14)
texcoords
public readonly List<Vector2> texcoords;
if you dont want to provide uv, leave it empty.
源码:Core/Mesh/PolygonMesh.cs (行 19)
usePercentPositions
public bool usePercentPositions;
源码:Core/Mesh/PolygonMesh.cs (行 44)
方法
Add(Vector2)
public void Add(Vector2 point);
| 参数 | 类型 | 说明 |
|---|---|---|
point | Vector2 |
源码:Core/Mesh/PolygonMesh.cs (行 58)
Add(Vector2, Vector2)
public void Add(Vector2 point, Vector2 texcoord);
| 参数 | 类型 | 说明 |
|---|---|---|
point | Vector2 | |
texcoord | Vector2 |
源码:Core/Mesh/PolygonMesh.cs (行 68)
HitTest(Rect, Vector2)
public bool HitTest(Rect contentRect, Vector2 point);
| 参数 | 类型 | 说明 |
|---|---|---|
contentRect | Rect | |
point | Vector2 |
源码:Core/Mesh/PolygonMesh.cs (行 250)
OnPopulateMesh(VertexBuffer)
public void OnPopulateMesh(VertexBuffer vb);
| 参数 | 类型 | 说明 |
|---|---|---|
vb | VertexBuffer |
源码:Core/Mesh/PolygonMesh.cs (行 74)