Click or drag to resize

ObjectPoolControllerInstantiate Method (GameObject)

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.2.0.0 (8.2.0.0)
Syntax
C#
public static GameObject Instantiate(
	GameObject prefab
)

Parameters

prefab
Type: GameObject
The prefab to be instantiated.

Return Value

Type: GameObject
An 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.
See Also