2D SideScroller - Repeating Ground Has Seams

I have a sidescroller game where the ground tiles are perfectly tileable. The tiles move to the left. When they reach a certain point we move them back to the right side of the screen.

Currently they are lining up about right - except you can clearly see the seams between tiles. How do I fix this?

Here is my code:

if (transform.localPosition.x <= groundDestroyXPos)
            {
                float newX = transform.position.x + (gameObject.renderer.bounds.size.x * ObstacleManager.totalGroundPieces);
                Vector3 newPos = new Vector3(newX,groundStartPos.y,0);
                transform.position = newPos;

Could be the Sprites instead of the code, particularly if you’re cutting the tiles out with the Sprite Editor. Point filtering helps. Having the tiles in their own asset without needing trimming removes the issue in my experience. If you really need to cut them from an atlas, try having them actually be contiguous in the atlas, and cutting them out manually.

That was the problem. I was using 2D Toolkit to trim sprites - i simply put the trim setting to “Tile XY” and it fixed the problem. Thanks.