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
- The USS cursor style property is not applied when it is set for the root VisualElement
- [Player Settings] [Common] [Optimization] - Setting 'Preload Assets' throws parser error
- Editor crashes on physx::shdfnd::internal::HashBase or freezes when instantiating a lot of GameObjects
- Audio Source stops playing when moved to a scene with LocalPhysicsMode.Physics2D Parameter
- "NullReferenceException: Object reference not set to an instance of an object" error is thrown in the Play Mode when the project is reopened with a Prefab GameObject selected in the SerializedField
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.