Layers are a tool that allows you 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. Unity currently supports three UI systems. 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.
You can select which layers display in the Scene viewAn interactive view into the world you are creating. You use the Scene View to select and position scenery, characters, cameras, lights, and all other types of Game Object. More info
See in Glossary from the View Options overlay.
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. |