Documentation

Unity Engine

Unity Engine

Layers and layerMasks

Resources for connecting layers to the Unity API, via layerMasks.
Read time 1 minuteLast updated 2 months ago

Unity APIs use layerMasks to define which layers the API can interact with.

Topic

Description

Introduction to layerMasksUnderstand how the Unity API uses layerMasks to define which layers it can interact with.
Set a layerMaskSet up a layerMask to use in API calls.
Add a layer to a layerMaskAdd a new layer to a layerMask via script.
Remove a layer from a layerMaskRemove a layer from a layerMask via script.

Additional resources