how to destroy object on unity code example Example 1: destroy gameobject unity Destroy(this.gameObject); Example 2: how to destroy an object in unity Destroy(gameObject);