Search Issue Tracker
Won't Fix
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
- “Open” button in Inspector does not function for certain Assets
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
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.