Time for action – find the Mesh Renderer component
Does "renderer" sound familiar to you? We already saw a component called Mesh Renderer when we created our Paddle and Ball GameObjects. If you don't remember, have a look:
Select the Ball, if you haven't already.
Look in the list of the components of the Ball in the Inspector panel. There should be one component there called Mesh Renderer.
If you see only the name of the component, click on the gray arrow next to the component name to expand the component.
Aha! What do we have here? Something called Mesh Renderer—it has a checkmark next to it. What happens if you click on it to uncheck that checkbox?
Go on—try it!
The ball disappeared. No surprises there. We saw something similar happen when we clicked on the checkmark beside an entire GameObject in the previous chapter.
But, I wonder, does this Mesh Renderer component have anything to do with the "renderer" we talked about in our DisappearMe
Script? Checking that checkbox certainly seemed to...