Click or drag to resize

GameObjectPoolManagerInternalAcquire Method

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

When implemented in a derived class, attempts to acquire an instance of a source according to AcquireMode.

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
protected override bool InternalAcquire(
	GameObject sourceObject,
	out GameObjectPool pool,
	out GameObject instance
)

Parameters

sourceObject
Type: UnityEngineGameObject
The source to acquire an instance of.
pool
Type: Umbrace.Unity.PurePoolGameObjectPool
When this method returns, contains the pool for the specified source, if one was created; otherwise, . This parameter is passed uninitialised.
instance
Type: UnityEngineGameObject
When this method returns, contains the instance of the specified source, if one was created; otherwise, . This parameter is passed uninitialised.

Return Value

Type: Boolean
if a pool exists for the specified source; otherwise, .
Exceptions
ExceptionCondition
ArgumentExceptionIf no pool exists for the specified source, and AcquireMode is set to Error.
See Also