- Unity 4.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 119字
- 2025-03-31 04:02:09
Time for action – unstick the Script
Let's remove the Script from the Ball and recheck the Mesh Renderer component to make sure everything's back to normal:
- Make sure that the Ball is still selected.
- Find the Mesh Renderer component of the Ball in the Inspector panel, and make sure that the component is checked. The Ball should reappear in your Scene view.
- Find the
DisappearMe
Script at the bottom of the Inspector panel. - Right-click/alternate-click on the name of the component, and click on Remove Component. On a Mac, you can command + click, or click the little black gear icon and choose Remove Component from the drop-down menu. Now, the Script is no longer associated with your GameObject.