Skip to main content

CompositeMesh

Namespace:FairyGUI
Source:Assets/Scripts/Core/Mesh/CompositeMesh.cs (line 9)

public class CompositeMesh : IMeshFactory, IHitTest

Interfaces:IMeshFactory, IHitTest

Constructors​

CompositeMesh()​

public CompositeMesh();

Source:Core/Mesh/CompositeMesh.cs (line 21)

Fields​

activeIndex​

public int activeIndex;

If it is -1, means all elements are active, otherwise, only the specific element is active

Source:Core/Mesh/CompositeMesh.cs (line 19)

elements​

public readonly List<IMeshFactory> elements;

Source:Core/Mesh/CompositeMesh.cs (line 14)

Methods​

HitTest(Rect, Vector2)​

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

Source:Core/Mesh/CompositeMesh.cs (line 50)

OnPopulateMesh(VertexBuffer)​

public void OnPopulateMesh(VertexBuffer vb);
ParameterTypeDescription
vbVertexBuffer

Source:Core/Mesh/CompositeMesh.cs (line 27)