- Unity 3.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 219字
- 2021-04-02 18:34:12
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 Game Objects. If you don't remember, have a look at the following steps:
- 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 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 Game Object in the last 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 have the same effect as running a script that said renderer.enabled = false;
.
Let's be bold here. We need to figure this out. We'll leave the checkbox unchecked and modify our script to get a solid answer.
- Learning Java Functional Programming
- Spring 5.0 By Example
- Python機器學習:數據分析與評分卡建模(微課版)
- Pandas Cookbook
- C語言程序設計案例式教程
- 假如C語言是我發明的:講給孩子聽的大師編程課
- Learning ELK Stack
- WebRTC技術詳解:從0到1構建多人視頻會議系統
- Visual Basic程序設計(第三版)
- 從零開始學Unity游戲開發:場景+角色+腳本+交互+體驗+效果+發布
- Kotlin程序員面試算法寶典
- MATLAB/Simulink建模與仿真
- 深入理解Android:WebKit卷
- Scratch 3少兒交互式游戲編程一本通
- Python機器學習技術:模型關系管理