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
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
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.