跳到主要内容

RegularPolygonMesh

命名空间:FairyGUI
源码:Assets/Scripts/Core/Mesh/RegularPolygonMesh.cs (行 8)

public class RegularPolygonMesh : IMeshFactory, IHitTest

接口:IMeshFactory, IHitTest

构造函数​

RegularPolygonMesh()​

public RegularPolygonMesh();

源码:Core/Mesh/RegularPolygonMesh.cs (行 50)

字段​

centerColor​

public Color32? centerColor;

源码:Core/Mesh/RegularPolygonMesh.cs (行 33)

distances​

public float[] distances;

源码:Core/Mesh/RegularPolygonMesh.cs (行 43)

drawRect​

public Rect? drawRect;

源码:Core/Mesh/RegularPolygonMesh.cs (行 13)

fillColor​

public Color32? fillColor;

源码:Core/Mesh/RegularPolygonMesh.cs (行 38)

lineColor​

public Color32 lineColor;

源码:Core/Mesh/RegularPolygonMesh.cs (行 28)

lineWidth​

public float lineWidth;

源码:Core/Mesh/RegularPolygonMesh.cs (行 23)

rotation​

public float rotation;

源码:Core/Mesh/RegularPolygonMesh.cs (行 48)

sides​

public int sides;

源码:Core/Mesh/RegularPolygonMesh.cs (行 18)

方法​

HitTest(Rect, Vector2)​

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

源码:Core/Mesh/RegularPolygonMesh.cs (行 120)

OnPopulateMesh(VertexBuffer)​

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

源码:Core/Mesh/RegularPolygonMesh.cs (行 56)