Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2020.2
Issue ID
1226317
Regression
No
[Mobile] Input.mousePosition returns delayed result when dragging on the screen
Reproduction steps:
1. Open the project in "DragLag.zip" and open "SampleScene"
2. Build the project for iOS and deploy it to a device
3. Touch the screen and drag your finger around
4. A cube will follow your finger based on Input.mousePosition
Expected result: the cube stays exactly below your finger (note 4)
Actual result: cube position is delayed (read the notes below)
Reproducible with: 2018.4.23f1, 2019.3.15f1, 2019.4.1f1, 2020.1.0b13, 2020.2.0a12
Devices tested:
Reproducible with:
VLNQA00310 iPad Pro 12.9 (iOS 13.4.1)
VLNQA00204 iPhone 5C (iOS 10.3.3)
VLNQA00160 iPhone 6s (iOS 13.3.1)
N/A, Samsung Galaxy S9 (SM-G960F), Android 8.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00313, Huawei Y6 Ⅱ Compact (HUAWEI LYO-L01), Android 5.1, CPU: MediaTek MT6735, GPU: Mali-T720
Notes:
1. When tapping the cube instantly appears where it should be compared to when dragging the finger
2. The delay seems to vary based on the device you are using. In the user's repro, the delay is much more extreme (look in the user's description)
3. Video is attached
4. The expected result is based on how it works in the editor (SampleScene)
-
CloudyVR
Jul 24, 2022 12:41
ah I apologize, I realize I was using `Input.mousePosition` from the legacy UI. Replacing with the newer `Mouse.current.position.ReadValue()` solved the issues!
-
CloudyVR
Jul 23, 2022 20:09
for FPS game development I think not fixing delayed mouse position is idiotic,
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note (2020.2.X):
This is expected behavior from a software cursor on an interactively rendered world.