RoundedRectMesh
命名空间:FairyGUI
源码:Assets/Scripts/Core/Mesh/RoundedRectMesh.cs (行 5)
public class RoundedRectMesh : IMeshFactory, IHitTest
接口:IMeshFactory, IHitTest
构造函数
RoundedRectMesh()
public RoundedRectMesh();
源码:Core/Mesh/RoundedRectMesh.cs (行 47)
字段
bottomLeftRadius
public float bottomLeftRadius;
源码:Core/Mesh/RoundedRectMesh.cs (行 40)
bottomRightRadius
public float bottomRightRadius;
源码:Core/Mesh/RoundedRectMesh.cs (行 45)
drawRect
public Rect? drawRect;
源码:Core/Mesh/RoundedRectMesh.cs (行 10)
fillColor
public Color32? fillColor;
源码:Core/Mesh/RoundedRectMesh.cs (行 25)
lineColor
public Color32 lineColor;
源码:Core/Mesh/RoundedRectMesh.cs (行 20)
lineWidth
public float lineWidth;
源码:Core/Mesh/RoundedRectMesh.cs (行 15)
topLeftRadius
public float topLeftRadius;
源码:Core/Mesh/RoundedRectMesh.cs (行 30)
topRightRadius
public float topRightRadius;
源码:Core/Mesh/RoundedRectMesh.cs (行 35)
方法
HitTest(Rect, Vector2)
public bool HitTest(Rect contentRect, Vector2 point);
| 参数 | 类型 | 说明 |
|---|---|---|
contentRect | Rect | |
point | Vector2 |
源码:Core/Mesh/RoundedRectMesh.cs (行 169)
OnPopulateMesh(VertexBuffer)
public void OnPopulateMesh(VertexBuffer vb);
| 参数 | 类型 | 说明 |
|---|---|---|
vb | VertexBuffer |
源码:Core/Mesh/RoundedRectMesh.cs (行 52)