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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.