Skip to main content

RoundedRectMesh

Namespace:FairyGUI
Source:Assets/Scripts/Core/Mesh/RoundedRectMesh.cs (line 5)

public class RoundedRectMesh : IMeshFactory, IHitTest

Interfaces:IMeshFactory, IHitTest

Constructors​

RoundedRectMesh()​

public RoundedRectMesh();

Source:Core/Mesh/RoundedRectMesh.cs (line 47)

Fields​

bottomLeftRadius​

public float bottomLeftRadius;

Source:Core/Mesh/RoundedRectMesh.cs (line 40)

bottomRightRadius​

public float bottomRightRadius;

Source:Core/Mesh/RoundedRectMesh.cs (line 45)

drawRect​

public Rect? drawRect;

Source:Core/Mesh/RoundedRectMesh.cs (line 10)

fillColor​

public Color32? fillColor;

Source:Core/Mesh/RoundedRectMesh.cs (line 25)

lineColor​

public Color32 lineColor;

Source:Core/Mesh/RoundedRectMesh.cs (line 20)

lineWidth​

public float lineWidth;

Source:Core/Mesh/RoundedRectMesh.cs (line 15)

topLeftRadius​

public float topLeftRadius;

Source:Core/Mesh/RoundedRectMesh.cs (line 30)

topRightRadius​

public float topRightRadius;

Source:Core/Mesh/RoundedRectMesh.cs (line 35)

Methods​

HitTest(Rect, Vector2)​

public bool HitTest(Rect contentRect, Vector2 point);
ParameterTypeDescription
contentRectRect
pointVector2

Source:Core/Mesh/RoundedRectMesh.cs (line 169)

OnPopulateMesh(VertexBuffer)​

public void OnPopulateMesh(VertexBuffer vb);
ParameterTypeDescription
vbVertexBuffer

Source:Core/Mesh/RoundedRectMesh.cs (line 52)