Hello, I have made my Game, But now i want to make settings menu in Game and want to control my FPS player mouse senstivity by slider i have set the slider already but how can i get axis to my player mouse senstivity and attach it to that slider.
public Slider sensitivitySlider;
public float mouseSensitivity = 150;
public float Sensitivity;
private void Update()
{
mouseSensitivity = mouseSensitivity * sensitivitySlider.value;
//The lower the value of the slider, the lower the mouse sensitivity in game
}
Like this?