Gone, but not forgotten
It's just as important to learn how to remove a script from a GameObject as it is to learn about adding one. Note that we could also have unchecked the checkbox in the DisappearMe script component to temporarily disable it.
The DisappearMe script is no longer acting on the Ball, but we haven't deleted it. You should still be able to see it in the Project panel. To delete it, click on the script and press the Delete key on your keyboard, or Command + Backspace if you're on a Mac. If you want to keep the script around to remember what you did in this chapter, leave it.
Tip
A Script for all seasons
You may already have guessed that the DisappearMe script is not exclusive to the Ball Game Object. You can drag-and-drop the script ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access