Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
0
Found in
2022.2.5f1
2023.1.0b2
2023.2.0a2
Issue ID
UUM-27590
Regression
No
Painter2D sets the wrong vector value when drawing figures
Reproduction steps:
1. Open the attached project “DrawingBug“
2. Open the scene “Assets/Scenes/SampleScene”
3. Enter the Play Mode
4. Press and hold the left mouse button
5. Drag the cursor either way and release the button
Expected result: Vector is always placed regarding the mouse cursor position
Actual result: Sometimes for the one frame the vector of the drawn shape will be set to (0;0)
Reproducible with: 2022.2.5f1, 2023.1.0b2, 2023.2.0a2
Couldn't test with: 2020.3.18f1 (The name 'LineCap' does not exist in the current context), 2021.3.18f1 (The name 'LineCap' does not exist in the current context)
Reproducible on: Windows 11
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
- Invalid Clip Method
- WebGPU error with Fantasy Kingdom and GPU Resident Drawer
- WebGPU fails with height fog in Fantasy Kingdom
- Crash on UndoManager::RegisterUndoInternal when applying added GameObjects to a Prefab
- [Asset Bundles] A new bundle hash is not generated when the name of a serialized field is changed
Resolution Note:
After looking at the project, there is an actual LineTo() call originating from (0,0). This is probably caused by the delayed input logic. Using the Input.MouseButtonDown() API from the Update() method should fix it.
Resolution Note (2023.2.X):
After looking at the project, there is an actual LineTo() call originating from (0,0). This is probably caused by the delayed input logic. Using the Input.MouseButtonDown() API from the Update() method should fix it.