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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.