# Line problem (Tiled vs. Unity5)

**URL:** <https://discourse.mapeditor.org/t/line-problem-tiled-vs-unity5/1683>\
**Category:** Questions\
**Created:** [September 18, 2016, 5:13pm UTC](https://discourse.mapeditor.org/t/line-problem-tiled-vs-unity5/1683 "2016-09-18T17:13:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pikkuArtsi](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@pikkuArtsi](https://discourse.mapeditor.org/u/pikkuArtsi)\
**Post date:** [September 18, 2016, 5:13pm UTC](https://discourse.mapeditor.org/t/line-problem-tiled-vs-unity5/1683/1 "2016-09-18T17:13:01Z")

</div>

Help me!

![](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/1X/fabe35652dc8570f53f8505345afe045fa4e41d1.png)

![](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/1X/a74757e94eaf9c77e5b98a734721714bc45b2f8f.png)

---

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [September 25, 2016, 10:52am UTC](https://discourse.mapeditor.org/t/line-problem-tiled-vs-unity5/1683/2 "2016-09-25T10:52:05Z")

</div>

Hi,

it looks like your tilesets are not perfectly aligned in a grid… but it is hard to tell without having the map file and the tileset. Could you upload those unless you managed to solve the issue with my previous comment?

Regards,  
Ablu

---

<div class="post-metadata">

**Author:** ![Ablu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ablu/32/1496_2.png) [@Ablu](https://discourse.mapeditor.org/u/Ablu)\
**Post date:** [September 25, 2016, 11:23am UTC](https://discourse.mapeditor.org/t/line-problem-tiled-vs-unity5/1683/3 "2016-09-25T11:23:08Z")

</div>

Sorry, I did not realize that you see this issue in Unity5.

This issue happens when you are scaling. It happens because when scaling small pixel errors happen. So it displays the surrounding pixels of your tileset.

The fix usually is to add a 1px border around your tiles with the same color as the border pixel of your tile. You can also do this automatically while loading the image of course.

Regards,  
Ablu

---

<div class="post-metadata">

**Author:** ![pikkuArtsi](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@pikkuArtsi](https://discourse.mapeditor.org/u/pikkuArtsi)\
**Post date:** [September 25, 2016, 6:12pm UTC](https://discourse.mapeditor.org/t/line-problem-tiled-vs-unity5/1683/4 "2016-09-25T18:12:05Z")

</div>

Tanks 🙂 I try that.

- Arto
