Click or drag to resize

GameObjectPoolManagerCreatePool Method (GameObject, GameObject, Boolean)

[This is preliminary documentation and is subject to change.]

Creates a GameObjectPool that pools instances of sourceObject, 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
C#
public GameObjectPool CreatePool(
	GameObject sourceObject,
	GameObject parent,
	bool createContainer = false
)

Parameters

sourceObject
Type: UnityEngineGameObject
The GameObject to be pooled.
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.

Return Value

Type: GameObjectPool
The newly-created GameObjectPool.
See Also