Unity 3.x Game Development by Example Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Time for action – Journey to the Unity Script Reference

The Unity Script Reference is like a dictionary that contains every single word of Unity JavaScript we'll ever need. It's organized extremely well, is searchable, and has hyperlinks to related sections. Look that up in your Funk and Wagnalls.

  1. Make sure that the Ball is still selected.
  2. Find the Mesh Renderer component of the Ball in the Inspector panel.
  3. Click on the blue book icon with the question mark on it to open the manual.

Your default browser should open, and the Mesh Renderer page of the Unity manual will load. Note that you're not viewing this information online. These are HTML files stored locally on your computer that Unity displays in your browser. You can find this same Unity manual online at this address: http://unity3d.com/support/documentation/Manual/index.html.

The manual tells you how to work with the things that you see in the Unity interface. The page you're looking at now tells you everything you always wanted to know about the Mesh Renderer component. Click on the Scripting button at the top-right of the page; the Unity Script Reference should appear.

As we want to explore the Renderer class, type the word Renderer into the search field at the top-left of the page. (My browser asked me to enable ActiveX controls to view the page; yours might do the same). Click on the link to the Renderer class at the top of the resulting list.