Version: 2023.1
解压缩预制件实例
Uses of layers in Unity

Layers

Layers are a tool that allows you to separate GameObjects in your scenes. You can use layers through the UI and with scripts to edit how GameObjects within your scene interact with each other.

Topic 描述
Uses of layers in Unity Understand common applications of layers in Unity.
Create layers in Unity How to create layers and assign GameObjects to layers in Unity.
Layers and layermasks Understand the difference between layers and layermasks.
Set a layermask How to correctly setup a layermask to use in API calls.
Add a layer to a layermask How to programmatically add a new layer to a layermask.
Remove a layer from a layermask How to programmatically remove a layer from a layermask.

其他资源

解压缩预制件实例
Uses of layers in Unity