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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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.