- Home /
Disable MouseLook on Pause Menu
Alright so, I got a Pause menu for my game working fine, only the mouse still moves around the player when I'm selecting buttons. I'm using the default JS Mouse orbit script and the pause menu is in a different scene being loaded in as an additive with the HUD at runtime.
How do I get the MouseOrbit disabled on Pause?
(mostly using C#)
Comment
Answer by Qasem2014 · Jul 14, 2015 at 07:21 AM
disable it in pause !
YourObject.GetComponent(MouseLook).enabled = false;
and enable it in resume
YourObject.GetComponent(MouseLook).enabled = true;
Your answer
Follow this Question
Related Questions
Script to disable MouseLook? 2 Answers
Disable all instances of a component 2 Answers
disable touch when game is paused(Time.timeScale = 0) 1 Answer
Disable first person controller script, how? 4 Answers
Disabling a script in runtime 2 Answers