Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active May 2, 2024 23:57
Show Gist options
  • Save unitycoder/815c2969ddd34030f3ced48d2ab7b06f to your computer and use it in GitHub Desktop.
Save unitycoder/815c2969ddd34030f3ced48d2ab7b06f to your computer and use it in GitHub Desktop.
Unity Pixel Art Tilemap Issues Gaps Lines Tearing

lines between tiles, tilemap gaps:

Pixel art

Some reasons:

Notes

Set collider size different per frame:

  • set collider size by script or animate collider size per frame in animator

Tilemap Sorting issues

Assets

@SuperCables
Copy link

A simple fix for the tilemap tearing is:

  1. Create a new material
  2. Set material shader to "Sprites/Default"
  3. Check "Pixel snap"
  4. Assign the material to the Tilemap Renderer Material slot for each tilemap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment