how to destroy all objects in unity code example Example: how to destroy an object in unity Destroy(gameObject);