- Home /
 
 
               Question by 
               Kappawaii · Jan 24, 2017 at 05:20 AM · 
                scripting problemeditor  
              
 
              Can't change a variable inside the standard RigidbodyFirstPersonController
I want to change a value from the RigidbodyFirstPersonController.cs script included in unity. 
 I want to change the Y sentivity to it's opposite (-2) by a line of code inside RigidbodyFirstPersonController.cs but the only variable in RigidbodyFirstPersonController.cs that i see is this :
 public MouseLook mouseLook = new MouseLook();
 
               I can't see how to change this variable
Would like some help, thanks :)
 
                 
                disvalue.png 
                (22.3 kB) 
               
 
              
               Comment
              
 
               
              So you need to change this variable in $$anonymous$$ouseLook class. Or create public method $$anonymous$$ouseLook.SetYSensitivity(float sensitivity). 
All variables xSensitivity, ySensitivity, clampVerticalRotation, $$anonymous$$imumx, maximumx, etc are declared in $$anonymous$$ouseLook (You can see it in inspector by FoldOut button -- triangle left of variable name). 
Your answer