Click or drag to resize

NamedGameObjectPoolManagerAcquire Method (String, Vector3, Quaternion, Transform)

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

Acquires an instance of the source object with the specified name 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 GameObject Acquire(
	string sourceObject,
	Vector3 position,
	Quaternion rotation,
	Transform parent
)

Parameters

sourceObject
Type: SystemString
The name of the game object to acquire an instance of.
position
Type: UnityEngineVector3
The position to set the instance's transform to.
rotation
Type: UnityEngineQuaternion
The rotation to set the instance's transform to.
parent
Type: UnityEngineTransform
The transform to which the instance should be parented.

Return Value

Type: GameObject
An instance of sourceObject acquired from the pool.
See Also