PoolManagerBaseTManagerSettings, TPool, TPoolSettings, TSource, TInstanceCreatePool Method (TPoolSettings, GameObject, Boolean, String) |
[This is preliminary documentation and is subject to change.]
Creates a new pool using the specified settings, and attaches it to the manager.
Namespace:
Umbrace.Unity.PurePool
Assembly:
Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax public TPool CreatePool(
TPoolSettings settings,
GameObject parent,
bool createContainer = false,
string containerName = null
)
Parameters
- settings
- Type: TPoolSettings
The settings to create the pool with. - parent
- Type: UnityEngineGameObject
The GameObject that the pool should be attached to, either directly or indirectly depending on createContainer. - createContainer (Optional)
- Type: SystemBoolean
to create the pool on a child object parented to parent; to create the pool directly on parent. - containerName (Optional)
- Type: SystemString
The name of the child object to be used as a container for the pool. If this is not specified, the name of the source will be used.
Return Value
Type:
TPoolThe newly-created pool.
See Also