API reference
API reference
Select your platform
No SDKs available
No versions available

FixedPool Class

A pool of objects that can be reused.
Others
T
Type

Properties

Returns the length of the pool.
Returns the active objects in the pool.

Member Functions

Provides a fixed pool with the given size and the type of primitive.
Use callbacks to register specific callbacks
Parameters
primitive
The primitive (gameobject)
size
Size of the pool
callbacks
Custom or generic callbacks to attach for create, onGet, onRelease
Get an object from the pool.
Returns
Release an object back to the pool.
Parameters
t
Did you find this page helpful?
Thumbs up icon
Thumbs down icon