Destroys the specified game object, respectively sets the object inactive and adds it to the pool.
AudioToolkit (in AudioToolkit.dll) Version: 18.104.22.168 (22.214.171.124)
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.