Version: 2020.3
Unpacking Prefab instances
Uses of layers in Unity

Layers

Layers are a tool that allows you to separate to separate GameObjectsThe fundamental object in Unity scenes, which can represent characters, props, scenery, cameras, waypoints, and more. A GameObject’s functionality is defined by the Components attached to it. More info
See in Glossary
in your scenes. You can use layers through the UI(User Interface) Allows a user to interact with your application. More info
See in Glossary
and with scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
to edit how GameObjects within your sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
interact with each other.

Topic Description
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.

Additional resources

Unpacking Prefab instances
Uses of layers in Unity
Copyright © 2020 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961