Skip to content

Object Pool Create

Create a new Object Pool for a prefab.

Hint

Normally object pools are created automatically as needed.
Use this action to create a pool manually if you need more control over its settings.

Parameters

Parameter Description
Prefab The Prefab that we want to create a pool for.
Preload Count The number of instances to pre-populate the pool with. This can help avoid hitches when spawning new instances.
Default Capacity The default capacity of the pool. The pool will grow as needed, which has some performance penalty. You can set a default capacity that minimizes the amount of resizing required.
Max Size The maximum number of instances to keep in the pool. Usually this is quite a high number, but if you are pooling heavy-weight objects you might want to limit the pool size."
Use Scene Parent If true, the pool will use a scene parent for spawned objects. This can be useful for organization and cleanup.

Usages

When object pools are created automatically they grow organically as needed.

Use Create when you know an object pool will be heavily used and you want to pre-populate it and set its size.