Destroy
Tutorial
·
Beginner
·
+10XP
·
5 mins
·
(2239)
Unity Technologies

How to use the Destroy() function to remove GameObjects and Components at runtime.
This tutorial is included in the Beginner Scripting project.
Previous: Linear Interpolation
Next: GetButton and GetKey
Languages available:
1. Destroy
DestroyBasic
DestroyOther
DestroyComponent