Destroys the specified game object, respectively sets the object inactive and adds it to the pool.
AudioToolkit (in AudioToolkit.dll) Version: 184.108.40.206 (220.127.116.11)
public static void Destroy(
- Type: GameObject
The game object.
Can be used on none-poolable objects as well. It is good practice to use ObjectPoolController.Destroy
whenever you may possibly make your prefab poolable in the future.
Must also be used on none-poolable objects with poolable child objects so the poolable child objects are correctly
moved to the pool.