Hello !
Moving 3D shooter the mouse is some kind of slideshow and it’s only in the editor, everything is fine when building the game. Fps game 60
Code
Cursor.lockState = CursorLockMode.Locked;
Vector2 dirMouse = Vector2.zero;
dirMouse.x = Input.GetAxis(“Mouse X”);
dirMouse.y = Input.GetAxis(“Mouse Y”);
Return not a smooth movement, but jerky cursor movement
It seems that in the editor the mouse moves at a speed of 10 frames per second, and at this time the game in the window editor runs at a speed of 60 frames per second. When the game is compiled WebGL, game works fine. 60fps movie character and move mouse. I don’t understand what could cause such an error in editor mode Cursor.lockState = CursorLockMode.Locked.
Code move character and move mouse are in the Update. Does not work at high speed, the mouse movement speed is 10 frames per second, the frame rate in the game is 60