Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.2
2020.2.0f1
2021.1
2021.2
Issue ID
1316145
Regression
No
Tilemap diagonal lines in Tiles look heavily distorted when viewed in Game View
Reproduction steps:
1. Open attached project "1316145.zip"
2. Open "MainScene" in the Scenes folder
3. Open Tile Palette in the Top-Menu/Window/2D
4. Enter Play Mode
5. Observe the Tiles in Game View
Expected result: Diagonal lines in Tiles look sharp, same as in the Tile Palette
Actual result: Diagonal lines in Tiles look distorted (some have more noticeable waves and distortions than others), not the same as in the Tile Palette
Reproducible with: using 2D Tilemap Editor 1.0.0 (2019.4.21f1, 2020.2.6f1, 2021.1.0b8, 2021.2.0a6)
Couldn't test with: 2018.4 (as the 2D Tilemap Editor package is not available)
Note: You can additionally paint more Tiles with diagonal lines while in Play Mode using Tile Palette, to see more distortions (using the Scene View)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
It seems that the orthographic size of the Camera (9) and the pixels per unit used for your Tiles (32) with the desired resolution (1280x720) are not compatible for a pixel perfect display, and in this case, will be upscaled and cause the distortions that you see.
To avoid the distortion you see for the desired resolution, we would suggest scaling the Tile Sprites to a size of 40 or changing the orthographic size of the Camera to 11.25 (720 divided by 32, size of the Tile Sprite, divided by 2). I have attached 2 images showing this. Example 1 shows Tile Sprites set to 40 pixels per unit on the left and 32 pixels per unit on the right. Example 2 shows the same setup, but with the orthographic size of the Camera set to 11.25. Also, using the Pixel Perfect Camera in the Unity Pixel Perfect package can help determine the right settings for your camera.