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
- Memory Profiler styling breaks when the SummaryView.uxml file is opened in UI Builder
- A "projectChanged" event is not triggered when Sprites are added to a SpriteAtlas
- A Memory leak occurs when the "JsonSerialization.FromJson" function is executed
- “ArgumentException: SetData()“ error when making a character with PSDImporter under specific conditions
- Shader warnings are thrown after building High Definition 3D template
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.