# Problem when exporting to Unity

**URL:** <https://discourse.mapeditor.org/t/problem-when-exporting-to-unity/1842>\
**Category:** Questions\
**Created:** [November 25, 2016, 12:05pm UTC](https://discourse.mapeditor.org/t/problem-when-exporting-to-unity/1842 "2016-11-25T12:05:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aupuma](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Aupuma](https://discourse.mapeditor.org/u/Aupuma)\
**Post date:** [November 25, 2016, 12:05pm UTC](https://discourse.mapeditor.org/t/problem-when-exporting-to-unity/1842/1 "2016-11-25T12:05:11Z")

</div>

Hi, I’m using Tiled for the first time, and when I export the map to Unity with Tiled2Unity, it isn’t centered in the blue square that should be in the edges, is it a bug, or there is something that I have to change??  
 ![](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/mapeditor/original/1X/047eaa1af093e021d9c132ff8f29d71e42fc8f4e.PNG)  
 ![](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/mapeditor/original/1X/0dc73183197d0fc8a531168ff5ca1fec05caf47d.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:** [November 25, 2016, 10:13pm UTC](https://discourse.mapeditor.org/t/problem-when-exporting-to-unity/1842/2 "2016-11-25T22:13:59Z")

</div>

Aupuman, can you send me your Tiled file and the textures that it references for its tilesets? I’ll try to export locally and see if I can repro this behavior.

Thanks,  
Sean

---

<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:** [November 26, 2016, 9:18pm UTC](https://discourse.mapeditor.org/t/problem-when-exporting-to-unity/1842/3 "2016-11-26T21:18:08Z")

</div>

Also, before you send your TMX + TSX (if applicable) + textures check your Tile Layer properties for Horizontal/Vertical offset and your Tileset properties for X/Y Drawing Offset. My best guess is one of these is in use, especially given you’ve been able to export other maps without issue.

---

<div class="post-metadata">

**Author:** ![Aupuma](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Aupuma](https://discourse.mapeditor.org/u/Aupuma)\
**Post date:** [November 27, 2016, 2:02pm UTC](https://discourse.mapeditor.org/t/problem-when-exporting-to-unity/1842/4 "2016-11-27T14:02:28Z")

</div>

Solved!!! Thanks!!!
