ChartMeshPool
public class ChartMeshPoolPool of reusable meshes for chart rendering. Reduces GC allocations by recycling mesh instances.
Constructors
Section titled “Constructors”
ChartMeshPool(int)
Section titled “ChartMeshPool(int)”public ChartMeshPool(int maxPoolSize = 32)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
maxPoolSize |
System.Int32 |
Methods
Section titled “Methods”
Get(ChartType)
Section titled “Get(ChartType)”public Mesh Get(ChartType chartType)Get a mesh from the pool or create a new one.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
UnityEngine.Mesh — No return description is available.
Return(Mesh, ChartType)
Section titled “Return(Mesh, ChartType)”public void Return(Mesh mesh, ChartType chartType)Return a mesh to the pool.
Parameters
| Name | Type | Description |
|---|---|---|
mesh |
UnityEngine.Mesh | |
chartType |
ChartGuru.ChartType | |
ReturnAll(ChartType)
Section titled “ReturnAll(ChartType)”public void ReturnAll(ChartType chartType)Return all active meshes to the pool.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType | |
ReturnAll()
Section titled “ReturnAll()”public void ReturnAll()Return all meshes of all types to pools.
Clear()
Section titled “Clear()”public void Clear()Clear all pools and destroy all meshes.
CreateQuadMesh()
Section titled “CreateQuadMesh()”public static Mesh CreateQuadMesh()Create a unit quad mesh (0,0 to 1,1).
Returns
UnityEngine.Mesh — No return description is available.
CreateCircleMesh(int)
Section titled “CreateCircleMesh(int)”public static Mesh CreateCircleMesh(int segments = 32)Create a unit circle mesh centered at origin.
Parameters
| Name | Type | Description |
|---|---|---|
segments |
System.Int32 |
Returns
UnityEngine.Mesh — No return description is available.
CreateDiamondMesh()
Section titled “CreateDiamondMesh()”public static Mesh CreateDiamondMesh()Create a diamond mesh centered at origin.
Returns
UnityEngine.Mesh — No return description is available.
CreateTriangleMesh()
Section titled “CreateTriangleMesh()”public static Mesh CreateTriangleMesh()Create a triangle mesh pointing up.
Returns
UnityEngine.Mesh — No return description is available.
Dispose()
Section titled “Dispose()”public void Dispose()No description is available for this member.