Click or drag to resize

ComponentPoolManagerAcquire Method (Type, Transform, Vector3, Quaternion)

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

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

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 Component Acquire(
	Type componentType,
	Transform parent,
	Vector3 position,
	Quaternion rotation
)

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.
position
Type: UnityEngineVector3
The position to set the instance's transform to.
rotation
Type: UnityEngineQuaternion
The rotation to set the instance's transform to.

Return Value

Type: Component
An instance of componentType acquired from the pool.
See Also