PoolGroup Fields

Ultimate Pooling

PoolGroup Fields

The PoolGroup type exposes the following members.

Fields
  Name Description
Public field eventType
The method used to inform a spawned instance when it is added to or removed from the pool.
Public field maxAmount
The max amount of instances that the pool can contain. If this amount is exceeded then the pool will need to destroy some objects.
Public field parentInstances
When true, all spawned instances will be added as child objects to the managing pool group.
Protected field pooled
A collection of objects that are ready to be spawned.
Public field prewarmAmount
The amount of inctances to preload.
Public field prewarmPerFrame
The max amount of instances to preload per frame.
Public field prewarmPool
Should the pool preload a set number of objects at startup. This can avoid frame spikes cause by calls to 'Instantiate' but may increase loading time.
Protected field tracked
A collection of objects that have been spawned by this pool.
Top
See Also