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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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.