ClockStone Audio Toolkit for Unity - Documentation
ObjectPoolControllerInstantiateWithoutPool Method (GameObject, Vector3, Quaternion) |
Instantiates the specified prefab without using pooling.
from the pool.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public static GameObject InstantiateWithoutPool( 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
If the prefab is poolable, the PoolableObject component will be removed.
This way no warning is generated that a poolable object was created without pooling.
See Also