ComponentPoolTryAcquireT Method (Vector3, Quaternion, T) |
[This is preliminary documentation and is subject to change.]
Acquires an instance of the component, 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 public bool TryAcquire<T>(
Vector3 position,
Quaternion rotation,
out T instance
)
where T : Component
Parameters
- position
- Type: UnityEngineVector3
The position to set the component's transform to. - rotation
- Type: UnityEngineQuaternion
The rotation to set the component's transform to. - instance
- Type: T
When this method returns, contains the instance of the component, if one could be acquired; otherwise, . This parameter is passed uninitialised.
Type Parameters
- T
- The type of the component.
Return Value
Type:
Boolean if an instance of the component was acquired from the pool; otherwise,
.
See Also