So i want to stop camera rotation whilst interacting with the menus (both running off the mouse). I was sure years ago this could be done by switching the look mode to manual. This approach kind of works with the state system, but if the mouse is moving when the states change that movement is retained and the camera keeps spinning in the same direction.
As an alternative i have used the Gameplayinput event to stop the camera rotation (probably just disabling UnityInput and others). This works fine (stops the camera rotation immediately). However, when you reenable the inputs the camera moves briefly in the direction the mouse was moving in before the event was triggered, which manifests as a visual jerk - presumably some smoothing movements are retained and then used?
The desired result is that the camera stops moving whilst going to do UI things and when camera is returned it should not be moving unless it is receiving current input.
Any pointers would be helpful, thanks.
As an alternative i have used the Gameplayinput event to stop the camera rotation (probably just disabling UnityInput and others). This works fine (stops the camera rotation immediately). However, when you reenable the inputs the camera moves briefly in the direction the mouse was moving in before the event was triggered, which manifests as a visual jerk - presumably some smoothing movements are retained and then used?
The desired result is that the camera stops moving whilst going to do UI things and when camera is returned it should not be moving unless it is receiving current input.
Any pointers would be helpful, thanks.