Unity说明文档翻译-Inspector Options

来源:互联网 发布:电台司令 评价 知乎 编辑:程序博客网 时间:2024/05/16 00:53

Inspector Options

检视面板选项

The Inspector Lock and the Inspector Debug Mode are two useful options that can help you in your workflow.

检视面板锁和检视面板调试模式是两个很有用的选项,它们可有助于你的工作流程.

Lock

Normally, the inspector shows the details of the currently selected object but it is sometimes useful to keep one object in the inspector while you work with others. To enable this, the inspector has a Lock mode that you can activate with the small padlock icon to the top right of the inspector window.

通常,检视面板显示当前选择对象的细节但有时保持一个对象在检视面板而你在其他对象上操作是非常有用的.要想这样,检视面板上有一个锁模式,你可以激活检视面板有上方的小锁图标来办到.

Note that you can have more than one inspector open at once (menu: Add Tab from the inspector tab menu), so you could keep one locked and have a second one to show the current selection. Below is an example of adding a new tab and locking it so it retains the desired view (in this case, the Time Manager editor settings). The result is two inspector windows, both visible, each showing different content.

注意,你可以一次打开多个检视面板(菜单:从检视面板的标签菜单上添加标签),所以你可以保持一个锁住并用第二个来显示当前选择.下面是一个添加新标签和锁住他的例子让它保持想要的视图(这里是时间管理编辑器设置).结果是两个检视面板窗口,都可见,每个显示不同内容.

Adding a new tab, docking it under the current inspector tab, and locking it.

添加一个新标签,让它停靠在当前检视面板标签下,并锁住它.

Debug/Normal Mode

调试/正常模式

Another option on the tab menu is the choice between Normal mode and Debug mode. Normally, the inspector shows a custom editor for an asset or component if one is available but sometimes it is handy to see the properties directly. Debug mode shows just the properties rather than a custom editor and for scripts, it also displays private variables (although their values can’t be edited like those of public variables).

在标签菜单上的另一个选项是在正常模式和调试模式间选择.通常,如果可以检视面板会用定制编辑器来显示资源和组件,但有时很难直接查看属性.调试模式仅显示脚本的属性而不是一个定制编辑器,它也会显示私有变量(虽然它们的值不能项共有变量那样可以编辑).

Script as seen in Debug mode with greyed private variables

在调试模式下看到的脚本和它灰色的私有变量.

 

As with Lock mode, Debug/Normal mode is applied to each inspector individually, so you can have two inspectors open at once to see both views.

锁模式,调试/正常模式都适用于每一个单独的检视面板,所以你可以同时打开两个检视面板来查看.

 

0 0