官术网_书友最值得收藏!

Using Unity's documentation

When we begin writing scripts, we will be looking at Unity's documentation quite often, so it's beneficial to know how to access the information we need. For an overview of a topic, we'll use the Reference Manual, and for specific coding details and examples, we'll use the Scripting Reference.

There are a number of ways to access the Unity documentation:

  • Through the Unity website at http://docs.unity3d.com/ScriptReference/index.html.
  • Through the Help menu on the top bar. In this way, you can access a local copy of Unity reference as we can see in the following image. This is worth remembering if there are internet connectivity issues:
  • Let's open Scripting Reference now and search for a GameObject:
  • Through the Help menu next to the component name. This will work only for Unity's built-in, standard components.

This is the place where we can find scripting documentation, answers to our questions, and a lot of example code. You might feel a bit lost right now, but don't worry, this is quite normal. The Unity documentation is really easy to use. For the fastest access to relevant information, use Search scripting... in the topright corner, as shown here:

The whole reason Scripting Reference exists is so that we can look for information as we need it. This will actually make us remember the code that we write over and over, just like our other daily routines and habits. It is a very good idea to take a brief look through the most common Unity objects, such as GameObject, Transform, MonoBehaviour, and Renderer.

主站蜘蛛池模板: 富民县| 胶州市| 道孚县| 沙河市| 宣化县| 饶阳县| 合水县| 类乌齐县| 亚东县| 乐平市| 扬中市| 子长县| 天长市| 田东县| 万全县| 蒙山县| 灌南县| 凯里市| 河北省| 茶陵县| 屯门区| 咸宁市| 米林县| 东海县| 剑阁县| 锡林郭勒盟| 英超| 卢氏县| 芜湖市| 东源县| 西昌市| 平遥县| 宿松县| 广昌县| 凌云县| 武胜县| 揭西县| 桂平市| 许昌县| 大邑县| 上杭县|