Click or drag to resize

Pool Fields

The Pool type exposes the following members.

Fields
  NameDescription
Public fieldAvailable
A list of all instances that can be re-used.
Public fieldStatic memberDestroyMessage
Message to send on instance pooling when PoolMessageMode is SendMessage or BroadcastMessage.
Public fieldStatic memberInstantiateMessage
Message to send on instance initialization when PoolMessageMode is SendMessage or BroadcastMessage.
Public fieldLimit
Limit the pool to a certain number of instances.
Public fieldLimitAmount
Number of instances to cap the pool to.
Public fieldLimitMode
What to do when the pool limit is reached?
Public fieldMessageMode
How an instance gets informed of pooling events?
Public fieldOrganize
Whether to organize instances for a cleaner scene hierarchy? Disable this if you want to set the parent of your instances manually.
Public fieldPersistent
Keep this pool persistent across scenes.
Public fieldPrefab
The prefab to pool instances of. The particular component is important as that's the component you will get when initializing an instance.
Public fieldPreload
Whether to pre-instantiate a certain of number of instances for future use.
Public fieldPreloadAmount
How many instances to instantiate for pre-loading?
Public fieldPreloadDelay
How many seconds to wait before starting to pre-load?
Public fieldPreloadTime
How many seconds to divide the pre-loading over?
Public fieldUsed
A list of all instances that are in use.
Top
See Also