> For the complete documentation index, see [llms.txt](https://docs.cainos.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cainos.net/pixel-art-top-down-basic/sorting-layers.md).

# SORTING LAYERS

### Overview

As you can see, the demo scene has platforms of different height levels. To make them sorted correctly, each height level is put at a different `Sorting Layer`. Inside each `Sorting Layer`, objects also have different `Order in Layer` values.

<img src="/files/L03VLZjxK2IDYcNDLzkT" alt="" width="375">

For collision to work correctly in each height level, objects in different `Sorting Layer` should also be put into corresponding `Layer`.

In order to make the player object able to travel between different layers. There is a `Edge Collider 2D`  with `Stair Layer Trigger`  script attached. When the player object touches the trigger, it will be sent to the layer and sorting layer defined in the script.

<figure><img src="/files/ejMxCvlBHa9vD6Wo6cQe" alt="" width="375"><figcaption></figcaption></figure>

### Import Tags & Layers Settings

The demo scene needs proper tags & layers settings to work properly. In order to include the tags & layers settings, the asset is uploaded as a complete project. On import, you should be able to see the project settings included.

If you did not import the tags & layers settings on import, you can still set it by clicking the slider icon at the top right corner of the Tags & Layers settings and select the preset included in the asset.

<div><img src="/files/AYjFNQs6h1ihbdsIhKzj" alt="" width="279"> <img src="/files/tYrk8tnmPolTcN5jzE1h" alt="" width="344"></div>

<div><img src="/files/s9JN25eBP3cRvIZIDJUj" alt="" width="352"> <img src="/files/fNimuZi6a2Kfv3REEyIQ" alt="" width="269"></div>
