Skip to main content

Layers, Tags, and Sorting Layers

Layers, tags, and sorting layers work like they normally do in Unity, but with a few limitations:

  • There is a limit to the number of layers, tags, and sorting layers per Experience.
  • Any runtime operation related to layers, tags, and sorting layers must use Genies API.

Layers

If you plan to use layers in your game, you will want to use only the layers starting with the prefix "custom". We reserve these layers for Experience developers.

experience layers

tip

You can rename any layer with the "custom" prefix

Layer Physics

In the Project Settings, you can make any changes to the ignore collision matrix to support custom interactions between layers.

collision matrix

Tags

Tags will work like they do in Unity, however, you can only have up to 100 custom tags.

Sorting Layers

The DevKit enables Experience developers to use up to 10 Sorting Layers

sorting layers

TypeScript Usage

danger

The Layers, Tags, and Sorting Layers API is currently not available in the Dev Kit.