Search Unity

Removing Gaps and Seams Between Sprites

Discussion in '2D' started by RyanNielson, Oct 9, 2015.

  1. RyanNielson

    RyanNielson

    Joined:
    May 23, 2013
    Posts:
    24
    Hey everyone.

    I use Unity mainly for 2D games, and it works pretty great most of the time. One issue I always had, especially when making tile maps, was small gaps between adjacent sprites. I figured if I ran into this, then others must have as well. I wrote a short tutorial about how to fix this issue using Unity's built in sprite packer that I hope you find useful.

    http://nielson.io/2015/10/fixing-gaps-between-sprites-better-2d-in-unity-part-2
     
  2. _jacks

    _jacks

    Joined:
    Nov 27, 2014
    Posts:
    27
    I use the "Tiled" program with the "Tiled2Unity" 3rd party program for exporting to unity.
    Works great, no seams or gaps. Supports collision and layers. Exports as a mesh. Much easier for painting large scenes from spritesheets, etc.

    Or you could just select the game object and press the "V" key to snap it to the next tile for smaller scenes
     
    LordCafe likes this.
  3. RyanNielson

    RyanNielson

    Joined:
    May 23, 2013
    Posts:
    24
    It has nothing to do the the tiles being side by side, if you've read the post. Even when holding v and snapping tiles next to eachother, the problem still occurs.