FixedPool
(
primitive
, size
, callbacks
)
|
Provides a fixed pool with the given size and the type of primitive.
Use callbacks to register specific callbacks
Signature
FixedPool(T primitive, int size, Callbacks callbacks) Parameters primitive: TÂ
The primitive (gameobject)
size: intÂ
Size of the pool
callbacks: CallbacksÂ
Custom or generic callbacks to attach for create, onGet, onRelease
|
CountActive
: override int
[Get] |
Returns the active objects in the pool.
Signature
override int CountActive |
CountAll
: override int
[Get] |
Returns the length of the pool.
Signature
override int CountAll |
Get
()
|
Get an object from the pool.
Signature
override T Get() Returns override T |
Release
(
t
)
|
Release an object back to the pool.
Signature
override void Release(T t) Parameters t: TReturns override void |