Unity Issue Tracker - White lines appear in the Game view when the Camera moves and the "Sprite Renderer" Component's "Draw Mode" is set to "Tiled"
Closed
UUM-40441
White lines appear in the Game view when the Camera moves and the "Sprite Renderer" Component's "Draw Mode" is set to "Tiled"
Unity: 2D
As Designed
2023.2.X
2023.1.X
2022.3.X
2021.3.X
Working as intended. Sprite doesn't have enough padding, which results in pixel sampling getting clamped during positional changes. I advise adding more padding using Sprite Editor to avoid sampling artifacts.
How to reproduce:
1. Open the attached project “WhiteLinesRepro“
2. Open the “MissionScene“ Scene
3. Enter Play Mode
4. Hover the mouse over the arrows to move the Camera up and down for a few seconds
Expected result: White lines don’t appear
Actual result: White lines appear
Reproduced on: macOS 13.4 (Intel), Windows 11 (by reporter)
Notes:
Issue is reproducible in Player
Issue is not reproducible if setting the “Draw Mode” to “Sliced“ or “Simple“ in the “Sprite Renderer” Component of the “MovementArea“ GameObject
Adding a Material with the “Pixel Snap“ option enabled to the "Sprite Renderer" Component of the “MovementArea“ GameObject, made the white lines appear permanently (tested by reporter, couldn’t test this myself, because the “Pixel Snap“ option is only available if URP isn’t installed and the project breaks without URP, also wasn’t able to reproduce the issue in a new project to test this)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?