Change UnityInputs Look sensitivity with sliders

Grannyboy

Active member
I have a settings menu where I would like to give the player the opportunity to change the Look Sensitivity X & Y with the help of 2 sliders.

I have tried to change the Look Sensitivity by referencing the UnityInput.LookSensitivity.X and .Y and set them that way, but that is not allowed.
LookSensitivity.PNG

I read another thread (https://www.opsive.com/forum/index.php?threads/set-aim-sensitivity-modifier.2664/) about using the State system which seems like a solid solution. My problem is how do I connect my sliders values to the new created state values?
LookSensitivity2.PNG


And where in the UltimateCharacterLocomotion do I set my LookSensitivity state? I want it to be enabled when not aiming.

If there is any clearification needed let me know!
 
Last edited:
Nevermind! I got the solution.

Instead of complicating stuff for the player with 2 sliders one for X and one for Y you can set one slider and only adjust the LookSensitivityMultiplier.

Step 1:
Reference the unity input script
SolvedLookSensitivity.PNG

Step 2:
Set the LookSensitivityMultiplier to your sliders value
1627811496667.png

Done!
 
Top