how to destroy ui unity code example Example: destroy ui element unity public GameObject panel; Destroy(panel);