Click or drag to resize

ComponentPoolManagerInternalAcquire 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(
	Type componentType,
	out ComponentPool pool,
	out Component instance
)

Parameters

componentType
Type: SystemType

[Missing <param name="componentType"/> documentation for "M:Umbrace.Unity.PurePool.ComponentPoolManager.InternalAcquire(System.Type,Umbrace.Unity.PurePool.ComponentPool@,UnityEngine.Component@)"]

pool
Type: Umbrace.Unity.PurePoolComponentPool
When this method returns, contains the pool for the specified source, if one was created; otherwise, . This parameter is passed uninitialised.
instance
Type: UnityEngineComponent
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