Unity3d—Using the Inspector中文翻译.doc
文本预览下载声明
Unity Manual User Guide Building Scenes Using the Inspector
Using the Inspector(使用检视视图)
The Inspector is used to view and edit Properties of many different types.
Games in Unity are made up of multiple GameObjects that contain meshes, scripts, sounds, or other graphical elements like Lights. When you select a GameObject in the Hierarchy or Scene View, the Inspector will show and let you modify the Properties of that GameObject and all the Components and Materials on it. The same will happen if you select a Prefab in the Project View. This way you modify the functionality of GameObjects in your game. You can read more about the GameObject-Component relationship, as it is very important to understand.
检视视图用于查看和编辑不同类型的属性。的游戏都是由包含网格脚本声音或其他图形元素的多个。当层次或场景视图中选择一个游戏,会显示让修改游戏对象的属性和所有组件。当你在项目选择同样你修改游戏功能。你可以阅读GameObject-Component relationship,因为它是非常重要的Inspector shows the properties of a GameObject and the Components and Materials on it.检视视图显示游戏对象和其组件及材质的属性
When you create a script yourself, which works as a custom Component type, the member variables of that script are also exposed as Properties that can be edited directly in the Inspector when that script component has been added to a GameObject. This way script variables can be changed without modifying the script itself.
Furthermore, the Inspector is used for showing import options of assets such as textures, 3D models, and fonts when selected. Some scene and project-wide settings are also viewed in the Inspector, such as all the Settings Managers.
当创建一个脚本,作为一个自定义组件类型,这个组件添加到一个游戏对象时,该脚本的成员变量可编辑的属性。这样无需修改脚本本身可以改变变量此外,用于显示的导入选项,如纹理三维模型选择字体。某些场景和项目范围的设置也,如所有设置。Any property that is displayed in the Inspector can be directly modified. There are two main types of Properties: Values and References.
检视视图中显示的任何属性都可以直接修改,有两种主要类型的属性:赋值属性和参照(引用)属性。
Editing Value Properties
Assigning References
Inspector Options
Editing Value Properties(编辑赋值属性)
Value properties do not reference anything and they can be edited right on the sp
显示全部