September 2010
Beginner
384 pages
8h 49m
English
false to true.Your Script should look like this:
function Update () {
renderer.enabled = true;
}
Bingo! The Ball started out invisible and then magically appeared. That means that the Mesh Renderer component and the renderer that we referred to in our Script are the same thing. And the checkbox in the Inspector panel is actually the enabled property in checkbox form instead of true and false, it shows us checked and unchecked states! In fact, you can even keep an eye on the checkbox when you click on Play and see it change states. ...
Read now
Unlock full access