Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Assign GameObjects to layers

Use layers to separate GameObjects in your scenes.
Read time 1 minuteLast updated 4 days ago

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.
You can select which layers display in the Scene view from the View Options overlay.

Topic

Description

Uses of layers in UnityUnderstand common applications of layers in Unity.
Create functional layers in UnityHow to create layers and assign GameObjects to layers in Unity.
Layers and layerMasksResources for connecting layers to the Unity API, via layerMasks.

Additional resources