# SuperTiled2Unity Custom Tranform/Orientation?

**URL:** <https://discourse.mapeditor.org/t/supertiled2unity-custom-tranform-orientation/4105>\
**Category:** Questions\
**Created:** [September 20, 2019, 1:21pm UTC](https://discourse.mapeditor.org/t/supertiled2unity-custom-tranform-orientation/4105 "2019-09-20T13:21:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gazoid](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/gazoid/32/2457_2.png) [@Gazoid](https://discourse.mapeditor.org/u/Gazoid)\
**Post date:** [September 20, 2019, 1:21pm UTC](https://discourse.mapeditor.org/t/supertiled2unity-custom-tranform-orientation/4105/1 "2019-09-20T13:21:33Z")

</div>

Hey all, when using SuperTiled2Unity, you can use the custom properties “unity:layer” and “unity:SortingLayer” to set sorting layers and layers in Unity on import.

I’ve looked around, but (!) is there a way you can do a custom property to set the transform of a layer, OR set the TileMap offsets in Unity?

![tilemap](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/c/c02b50914c7e82b1fdefac5f7c97bc049e697d22.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:** [September 20, 2019, 3:28pm UTC](https://discourse.mapeditor.org/t/supertiled2unity-custom-tranform-orientation/4105/2 "2019-09-20T15:28:38Z")

</div>

Hi there, @Gazoid. The `Tile Anchor` transforms are used to for the different isometric and hex map configurations and generally shouldn’t be messed with.

Have you tried using the `Vertical Offset` and `Horizontal Offset` for the layer in Tiled? The `Drawing Offset` for the tilesets in Tiled can also be put to use. Those values are imported over to your Unity prefabs by SuperTiled2Unity.

---

<div class="post-metadata">

**Author:** ![Gazoid](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/gazoid/32/2457_2.png) [@Gazoid](https://discourse.mapeditor.org/u/Gazoid)\
**Post date:** [September 20, 2019, 3:58pm UTC](https://discourse.mapeditor.org/t/supertiled2unity-custom-tranform-orientation/4105/3 "2019-09-20T15:58:36Z")

</div>

Hi Sean, thank you for the quick reply!

I’m looking to push the layers back in the Z for use in some parallax layers. I was wondering if I could set a custom property from tiled to do this, rather than importing to Unity and then moving by hand for each level 🙂

If not I’ll see if I can write my own script.

Many thanks,  
Gaz

---

<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:** [October 13, 2019, 5:04pm UTC](https://discourse.mapeditor.org/t/supertiled2unity-custom-tranform-orientation/4105/4 "2019-10-13T17:04:22Z")

</div>

Sorry I didn’t replay sooner n this one: Generally we don’t change the Z value on the transform of a layer or object but instead modify the `Sorting Layer` to control the render order.

I talk a bit about sorting layers here: [https://supertiled2unity.readthedocs.io/en/latest/manual/sorting.html](https://supertiled2unity.readthedocs.io/en/latest/manual/sorting.html)
