RectMesh
命名空间:FairyGUI
源码:Assets/Scripts/Core/Mesh/RectMesh.cs (行 8)
public class RectMesh : IMeshFactory, IHitTest
接口:IMeshFactory, IHitTest
构造函数
RectMesh()
public RectMesh();
源码:Core/Mesh/RectMesh.cs (行 35)
字段
colors
public Color32[] colors;
源码:Core/Mesh/RectMesh.cs (行 33)
drawRect
public Rect? drawRect;
源码:Core/Mesh/RectMesh.cs (行 13)
fillColor
public Color32? fillColor;
源码:Core/Mesh/RectMesh.cs (行 28)
lineColor
public Color32 lineColor;
源码:Core/Mesh/RectMesh.cs (行 23)
lineWidth
public float lineWidth;
源码:Core/Mesh/RectMesh.cs (行 18)
方法
HitTest(Rect, Vector2)
public bool HitTest(Rect contentRect, Vector2 point);
| 参数 | 类型 | 说明 |
|---|---|---|
contentRect | Rect | |
point | Vector2 |
源码:Core/Mesh/RectMesh.cs (行 80)
OnPopulateMesh(VertexBuffer)
public void OnPopulateMesh(VertexBuffer vb);
| 参数 | 类型 | 说明 |
|---|---|---|
vb | VertexBuffer |
源码:Core/Mesh/RectMesh.cs (行 40)