Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active June 16, 2023 19:08
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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
@unitycoder
Copy link
Author

@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