O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

  1. Make sure that the Ball is still selected.
  2. 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.
  3. Find the DisappearMe Script at the bottom of the Inspector panel.
  4. Right-click on the name of the component, and click on Remove Component. On a Mac, you can Control + 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 Game Object.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required