Hi,
the Mouse.Delta values read from the new input system do not work as expected and behave very strange. I could not found any other issues like that, so I hope it is just a different setting on my side (although I’m still using the default samples).
My setup:
- Unity 2021.2.7f1 (win11)
- GPU: RTX 3080
- Render Streaming 3.1.0-exp2
- Samples (URP scene + webserver.exe)
- Testing on local network (ethernet)
With the inspector set to debug mode I observe the “input look” variable of the script SimpleCameraControllerV2, which is the Vector2 readvalue from the delta+button action. When clicking and moving the mouse on a separate notebook, the values do not reset properly when not moving anymore. You have to release the mouse button. When stopping the mouse, you still rotate the camera. The values when not moving anymore vary between 1 and something crazy like 15 or above (and its negative counterparts). When you try to bring both values, x and y, to zero, one of them always jumps back to something like 1 or 3 or so…
It gets even worse: If the game view in the editor does not have focus (for example I click somewhere in the hierarcy), the input look values are suddenly the absolute mouse position with zero in center of the game screen. As soon as the game view in the editor gets its focus back, the values behave like above. Because of that it’s not possible to test on the same machine (editor + browser). Of course, using a separate notebook is a workaround, but the above issue still exists.
Hopefully some of you have an idea. I’m surprised that nobody seems to have this issue.
Edit:
Just tested on another PC (GTX 1070) with Unity 2020.3.18. Everything works fine. None of the above issues exist (except that I get no video when using hardware encoder support). Will do some more tests whether its caused by the pc, the unity version or my specific unity install.
Edit2:
Did some more tests:
2020.3.18 & 2020.3.27 - working
2021.2.7 & 2021.2.10 - not working
The input debugger shows the correct delta values. It seems that setting the Update Mode of the input system package to fixed update, sometimes the correct 0,0 values are received. The input system itself seems to be working fine in 2021.2.