Heya, Im looking for a way to use a gui slider to set the mouse sensitivity. If anyone has a snippet around maybe you’d share. I’d consider it a professional favor and would return it with some kind of art solution.
The bundled Mouselook is C# thus confusing.
Adapting the Mouselook plus from the wiki is also extra confusing.
If anyone has a clue, and wants something in exchange, let me know? -Because I dont have a clue, lol.
Sorry to revive an old thread, but it seemed better than starting a new one.
Using the code posted above (thanks!) but it only seems to work for the X sensitivity. The Y sensitivity (up and down remains unaltered regardless of setting. Using the standard MouseLook script attached to the player object (set to mouse X) and its child main camera (set to mouseY).
Any ideas?
Ah this is what I’ve been looking for too in the hope it would compensate for some crazy magic mouse movement! In my case this works on the up down movement but not left to right. This is on the standard FP controller prefab, so both cam and capsule are using the same script. Does it matter where this snippet is placed in the script?
TIA
boxy
If you don’t have an existing OnGUI function in the script then just add it in. Otherwise, add the active line from the function body to the existing OnGUI function somewhere.