Class TickBasedMeshPool
This class provides a pool of meshes that assumes most meshes are requested when needed and all are returned after being used.
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
public class TickBasedMeshPool
Constructors
TickBasedMeshPool(float)
Declaration
public TickBasedMeshPool(float allowedUnusedMeshPercentage = 0.4)
Parameters
Type | Name | Description |
---|---|---|
float | allowedUnusedMeshPercentage |
Methods
Clear()
Destroys all meshes in the mesh pool.
Declaration
public void Clear()
Get()
Declaration
public Mesh Get()
Returns
Type | Description |
---|---|
Mesh |
ReturnAll()
Declaration
public void ReturnAll()