Question by
NaahL · Jun 06, 2020 at 02:24 AM ·
fps controllerstandard-assets
How do I change the sensitivity of the Standard Assets fps controller through a script?
public UnityStandardAssets.Characters.FirstPerson.FirstPersonController controller;
public float sensitivity;
void Update()
{
sensitivity = PlayerPrefs.GetFloat("sensitivityVal");
controller.XSentitivity = sensitivity;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613000218im_/https://answers.unity.com/themes/thub/images/avi.jpg)