跳到主要内容

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

源码:Core/Mesh/RectMesh.cs (行 80)

OnPopulateMesh(VertexBuffer)​

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

源码:Core/Mesh/RectMesh.cs (行 40)