Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.2
2022.1
2022.1.0a4
Issue ID
1354903
Regression
No
Solid green rectangles drawn using the Mesh API are of uneven thickness
Steps to reproduce:
1. Download and open "New Unity Project.zip"
2. Click on Window > UI Toolkit > TextDebugWindow
3. Use mouse wheel to zoom in, use alt + mouse to drag
Expected result: The solid green rectangles drawn using the Mesh API are of the same thickness
Actual result: The solid green rectangles drawn using the Mesh API are thicker at the sides compared to the centre
Reproducible with: 2021.2.0b8, 2022.1.0a5
Could not test with: 2019.4.29f1 (No overload method for Instantiate takes 0 arguments error), 2020.3.17f1, 2021.1.17f1 (Solid green rectangles are not drawn in the TextDebugWindow)
Note:
The solid green rectangles have a height of 0.5f
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
- ScriptUpdater does not work correctly when Chinese(Simplified) language support is enabled and compiler messages are localized
- Crash on VFXValueWrapper::GetTexture when reimporting texture in use by out of bounds VFX
- Crash on RaiseException when watching an Interface Property
- Assembly definition "Any Platform" checkbox is useless and does not follow nested checkbox rules
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
Resolution Note (2022.1.X):
The dashed lines in the sample project are rendered using the MeshGenerationContext.Rectangle() internal method. This method is designed to render antialiased primitives that may exhibit weird artifacts when one dimension is very thin.
We are working on new vector APIs that will allow to properly render thin lines, but in the meantime, building the geometry manually using MeshGenerationContext.Allocate() won't show that kind of visual artifact.