







![]() |
ClockStone Audio Toolkit for Unity - Documentation |
ObjectPoolController..::..Instantiate Method (GameObject, Vector3, Quaternion) |
ObjectPoolController Class See Also Send Feedback |
![]() |
Retrieves an instance of the specified prefab. Either returns a new instance or it claims an instance
from the pool.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.0.0.0 (8.0.0.0)
Syntax
C# |
---|
public static GameObject Instantiate( GameObject prefab, Vector3 position, Quaternion quaternion ) |
Parameters
- prefab
- Type: GameObject
The prefab to be instantiated.
- position
- Type: Vector3
The position in world coordinates.
- quaternion
- Type: Quaternion
The rotation quaternion.
Return Value
Type: GameObjectAn instance of the prefab.
Remarks
Can be used on none-poolable objects as well. It is good practice to use ObjectPoolController.Instantiate
whenever you may possibly make your prefab poolable in the future.