Click or drag to resize

ComponentPoolManagerAcquireT Method (Vector3, Quaternion)

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

Acquires an instance of the component T from an attached pool, and sets the position and rotation of its GameObject.

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 T Acquire<T>(
	Vector3 position,
	Quaternion rotation
)
where T : Component

Parameters

position
Type: UnityEngineVector3
The position to set the instance's transform to.
rotation
Type: UnityEngineQuaternion
The rotation to set the instance's transform to.

Type Parameters

T
The type of component to acquire an instance of.

Return Value

Type: T
An instance of the component T that was acquired from the pool.
See Also