- Home /
Fast Question - Main menu / off camera
Hey, I have 1, small question.
I done script menu, but i dunno how in js stop camera moving.
if(Input.GetKeyDown("escape")){
if(pauseEnabled == true){
//unpause the game
pauseEnabled = false;
Time.timeScale = 1;
AudioListener.volume = 1;
Screen.showCursor = false;
}
//else if game isn't paused, then pause it
else if(pauseEnabled == false){
pauseEnabled = true;
AudioListener.volume = 0;
Time.timeScale = 0;
Screen.showCursor = true;
}
}
}
When menu is active i try:
I try Camera.mainCamera.active = false
and, on no active
Camera.mainCamera.active = false
But it doesn't work, camera back for self first possition, and when I Off menu, camera dont move and goes down. ( I dont saw map).
Could any1 get me resolve ?
I think you saying that you want the camera to remain on but to stop moving? If so, you are going to have to find the script that is moving the camera and disable it. The Camera script/component does not move a camera, so disabling it will only turn the camera off.
Your answer
Follow this Question
Related Questions
How to make a Main Menu 3 Answers
MoveTowards problem 1 Answer
what is the right way to change scenes? 1 Answer
Any tips on making a nice menu? 1 Answer
Move the camera to the left when the mousecursor is left 1 Answer