# Is possible get value for que Sorting Layer Exposed?

**URL:** <https://discourse.mapeditor.org/t/is-possible-get-value-for-que-sorting-layer-exposed/3848>\
**Category:** Questions\
**Created:** [March 29, 2019, 9:56pm UTC](https://discourse.mapeditor.org/t/is-possible-get-value-for-que-sorting-layer-exposed/3848 "2019-03-29T21:56:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuerreroCraft61](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/guerrerocraft61/32/2246_2.png) [@GuerreroCraft61](https://discourse.mapeditor.org/u/GuerreroCraft61)\
**Post date:** [March 29, 2019, 9:56pm UTC](https://discourse.mapeditor.org/t/is-possible-get-value-for-que-sorting-layer-exposed/3848/1 "2019-03-29T21:56:35Z")

</div>

I need the value for the Sorting Layer and Order layer to try doing a FixDepth script, is possible get thats value?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [April 2, 2019, 12:36pm UTC](https://discourse.mapeditor.org/t/is-possible-get-value-for-que-sorting-layer-exposed/3848/2 "2019-04-02T12:36:35Z")

</div>

Please try to be a bit more specific. Are you trying to use the support for JavaScript scripting and missing a feature in the API? What are “Sorting Layer” and “Order layer” values?

---

<div class="post-metadata">

**Author:** ![GuerreroCraft61](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/guerrerocraft61/32/2246_2.png) [@GuerreroCraft61](https://discourse.mapeditor.org/u/GuerreroCraft61)\
**Post date:** [April 2, 2019, 3:11pm UTC](https://discourse.mapeditor.org/t/is-possible-get-value-for-que-sorting-layer-exposed/3848/3 "2019-04-02T15:11:55Z")

</div>

![Captura](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/8/82c3781ec40e76b55329c9013067545fd75f4eb0.png)

---

<div class="post-metadata">

**Author:** ![Seanba](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/seanba/32/1531_2.png) [@Seanba](https://discourse.mapeditor.org/u/Seanba)\
**Post date:** [April 6, 2019, 7:10pm UTC](https://discourse.mapeditor.org/t/is-possible-get-value-for-que-sorting-layer-exposed/3848/4 "2019-04-06T19:10:42Z")

</div>

Hi there, @GuerreroCraft61. It looks like you are using an old version of Tiled2Unity. I would update to the latest SuperTiled2Unity.

In any case, if you use a custom property on your Tile Layer (in Tiled) named `unity:sortingLayerName` then that will set your Sorting Layer in Unity during export. Thanks.
