ComponentPoolManagerCreatePool Method (Type, GameObject, Boolean) |
[This is preliminary documentation and is subject to change.]
Creates a
ComponentPool that pools instances of
componentType, 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 ComponentPool CreatePool(
Type componentType,
GameObject parent,
bool createContainer = false
)
Parameters
- componentType
- Type: SystemType
The type of component 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:
ComponentPoolThe newly-created
ComponentPool.
See Also