Click or drag to resize

PoolManagerBaseTManagerSettings, TPool, TPoolSettings, TSource, TInstanceTryAcquire Method

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

Acquires an instance of sourceObject from an attached pool.

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 bool TryAcquire(
	TSource sourceObject,
	out TInstance instance
)

Parameters

sourceObject
Type: TSource
The game object to acquire an instance of.
instance
Type: TInstance
When this method returns, contains the instance of sourceObject, if one could be acquired; otherwise, . This parameter is passed uninitialised.

Return Value

Type: Boolean
if an instance of sourceObject was acquired from an attached pool; otherwise, .
See Also