Click or drag to resize

ComponentPoolManagerTryAcquire Method (Type, Transform, Component)

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

Acquires an instance of componentType from an attached pool, and sets its parent transform.

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(
	Type componentType,
	Transform parent,
	out Component instance
)

Parameters

componentType
Type: SystemType
The type of component to acquire an instance of.
parent
Type: UnityEngineTransform
The transform to which the instance should be parented.
instance
Type: UnityEngineComponent
When this method returns, contains the instance of componentType, if one could be acquired; otherwise, . This parameter is passed uninitialised.

Return Value

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