Pool Fields |
The Pool type exposes the following members.
| Name | Description | |
|---|---|---|
| Available | A list of all instances that can be re-used. | |
| DestroyMessage | ||
| InstantiateMessage | ||
| Limit | Limit the pool to a certain number of instances. | |
| LimitAmount | Number of instances to cap the pool to. | |
| LimitMode | What to do when the pool limit is reached? | |
| MessageMode | How an instance gets informed of pooling events? | |
| Organize |
Whether to organize instances for a cleaner scene hierarchy? Disable this if you want to set the parent of your instances
manually.
| |
| Persistent | Keep this pool persistent across scenes. | |
| Prefab |
The prefab to pool instances of. The particular component is important as that's the component you will get when initializing an
instance.
| |
| Preload | Whether to pre-instantiate a certain of number of instances for future use. | |
| PreloadAmount | How many instances to instantiate for pre-loading? | |
| PreloadDelay | How many seconds to wait before starting to pre-load? | |
| PreloadTime | How many seconds to divide the pre-loading over? | |
| Used | A list of all instances that are in use. |