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