Click or drag to resize

NamedGameObjectPoolManagerCanAcquire Method

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

Determines whether an instance of the source object with the specified name can be acquired from its 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 CanAcquire(
	string sourceObject
)

Parameters

sourceObject
Type: SystemString
The name of the game object to check.

Return Value

Type: Boolean
if an instance of sourceObject can be acquired from its pool; otherwise, .
Remarks
An instance can be acquired when its pool contains at least one instance, or when InstantiateWhenEmpty is .
See Also