lines between tiles, tilemap gaps:
- Create sprite atlas with padding = 2 https://forum.unity.com/threads/artifacts-in-a-2d-pixel-art-scene.1427049/#post-8959284
- disable antialias
- use pixel snap shader material
- texture importer: point filter
- use unity pixel perfect camera package
- resolution issue? float camera pos
- Changing the Tiles Pixel Per Unit from 32 to 31.99 : https://forum.unity.com/threads/tilemap-has-tearing-between-tiles-even-with-pixel-snap.499154/#post-5447910
- use atlas (since it has padding) https://forum.unity.com/threads/unitys-tilemap-problem-some-gaps-between-tiles.594331/#post-3970438
- whats happening with pixels https://stackoverflow.com/questions/35785291/getting-giggly-effect-when-slowly-moving-a-sprite
- lines between https://forum.unity.com/threads/pixel-red-blue-lines-tilemap.1334996/#post-8435159
Pixel art
- In order to make your pixel perfect camera work properly all your sprites wide and height needs to be even. That thing cost me like 4 days. Without this aspect ratios 1:1 & 3:1 was very jittery. https://forum.unity.com/threads/the-pixel-perfect-advice-ive-never-seen-anywhere.1385490/
- producing pixel perfect frames and smooth movement https://forum.unity.com/threads/smooth-looking-pixel-art-in-motion.1392745/#post-8767468
Some reasons:
- No Pixel Snap Material
- No Manual sprite extrude and extrude edges 1 (sprite default)
- Mesh type Tight
- Sprite Atlas with Filter mode Point and Format RGBA 32 All I had to do was resize the tile by removing -0.0001 pixels both in X and Y. https://forum.unity.com/threads/tile-map-tearing-problems.225777/page-2#post-4633756
- MSAA https://forum.unity.com/threads/diagonal-line-artifact-through-overlapping-sprites.1363042/#post-8596627
Notes
- Set tilemap palette custom size (from automatic), from tilemap asset, the sub asset https://forum.unity.com/threads/change-tileset-from-automatic-grid-size-to-manual-grid-size.958681/#post-6248737
Set collider size different per frame:
- set collider size by script or animate collider size per frame in animator
using small offset fixed here: https://forum.unity.com/threads/tilemap-has-tearing-between-tiles-even-with-pixel-snap.499154/#post-7299658