Version: 2020.3
Script Execution Order 设置
时间 (Time)

Tags and Layers

Tags and Layers 设置(主菜单:__Edit__ > Project Settings__,然后选择 Tags and Layers__ 类别)可用于设置标签 (Tags)排序图层 (Sorting Layers)图层 (Layers)

在定义任何自定义标签或图层之前的 Tags and Layers Manager
在定义任何自定义标签或图层之前的 Tags and Layers Manager

标签 (Tags)

标签 (Tags) 是标记值,可用于标识项目中的对象(有关更多详细信息,请参阅标签文档)。要添加新标签,请单击列表右下角的加号按钮 (+),然后命名新标签。

添加新标签
添加新标签

请注意,一旦命名了标签,就无法重命名。要删除标签,请单击标签,然后单击列表右下角的减号 (-) 按钮。

标签列表显示了四个自定义标签
标签列表显示了四个自定义标签

排序图层 (Sorting Layers)

排序图层与 2D 系统中的精灵图形结合使用。排序 (Sorting) 是指不同精灵的覆盖顺序。

添加新的排序图层
添加新的排序图层

要添加和删除排序图层 (Sorting Layers),请使用列表右下角的加号和减号 (+/-) 按钮。要更改其顺序,请拖动每个图层项左侧的控制柄。

Sorting Layers 列表显示了四个自定义排序图层
Sorting Layers 列表显示了四个自定义排序图层

图层 (Layers)

Use Layers throughout the Unity Editor as a way to create groups of objects that share particular characteristics (see documentation on Layers for further details). Use Layers primarily to restrict operations such as raycasting or rendering, so that they are only applied to the relevant groups of objects. Layers marked as Builtin Layer are default layers used by Unity, which you cannot edit. You can customise layers marked as User Layer.

添加新图层
添加新图层

To customise User Layers, type a custom name into the text field for each one you wish to use. Note that you can’t add to the number of Layers but, unlike Tags, you can rename Layers.

Script Execution Order 设置
时间 (Time)