跳到主要内容

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);
参数类型说明
pointVector2

源码:Core/Mesh/PolygonMesh.cs (行 58)

Add(Vector2, Vector2)​

public void Add(Vector2 point, Vector2 texcoord);
参数类型说明
pointVector2
texcoordVector2

源码:Core/Mesh/PolygonMesh.cs (行 68)

HitTest(Rect, Vector2)​

public bool HitTest(Rect contentRect, Vector2 point);
参数类型说明
contentRectRect
pointVector2

源码:Core/Mesh/PolygonMesh.cs (行 250)

OnPopulateMesh(VertexBuffer)​

public void OnPopulateMesh(VertexBuffer vb);
参数类型说明
vbVertexBuffer

源码:Core/Mesh/PolygonMesh.cs (行 74)