Skip to content

ChartMeshPool

ClassChartGuruChartGuru
public class ChartMeshPool

Pool of reusable meshes for chart rendering. Reduces GC allocations by recycling mesh instances.

public ChartMeshPool(int maxPoolSize = 32)

No description is available for this member.

Parameters

Name Type Description
maxPoolSize System.Int32

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.

public void Return(Mesh mesh, ChartType chartType)

Return a mesh to the pool.

Parameters

Name Type Description
mesh UnityEngine.Mesh
chartType ChartGuru.ChartType
public void ReturnAll(ChartType chartType)

Return all active meshes to the pool.

Parameters

Name Type Description
chartType ChartGuru.ChartType
public void ReturnAll()

Return all meshes of all types to pools.

public void Clear()

Clear all pools and destroy all meshes.

public static Mesh CreateQuadMesh()

Create a unit quad mesh (0,0 to 1,1).

Returns

UnityEngine.Mesh — No return description is available.

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.

public static Mesh CreateDiamondMesh()

Create a diamond mesh centered at origin.

Returns

UnityEngine.Mesh — No return description is available.

public static Mesh CreateTriangleMesh()

Create a triangle mesh pointing up.

Returns

UnityEngine.Mesh — No return description is available.

public void Dispose()

No description is available for this member.