I have 2 cameras in scene: Main Camera & Character Camera. In the script, I switch the camera via:
After switching the camera, the
Update() doesn’t get called anymore. How come?
I assume you have put the script on the camera itself and if you have, when you then go on to deactivate the camera all scripts on it will get deactivated as well stopping not just
Update()from running but all scripts and functions on that specific camera. There are two ways to prevent this try. Either move the script to another object that’s always active or use this instead:
mainCamera.enabled = true;
characterCamera.enabled = false;
Hope this works and good luck with the rest of your project!