Why is it when I attach my camera controller to the MAIN camera, it works fine, it allows me to orbit & look around, BUT when I attach the script to another camera, it only shows & allows me to use orbit camera controller in the camera preview window?
This is what it’s doing.
ixi1g4
Any help is DEFINITELY appreciated!
Thank You!
Have a GREAT day!
The main camera which is no longer moving, is rendering on top of the one you’re controlling. You can disable the main camera and/or adjust the “depth” properties of each camera to make sure the one you want is on top. (If the main camera is not going to be visible you should disable it, as rendering it would just be a waste of resources)
1 Like
StarManta : How do I change the depth in code so it automatically makes whatever camera the script is attached to become the new “main” camera, but when the script detaches, the depths of all the cameras switch back to normal where “main camera” is the actual camera again?
You can just set camera.depth of the desired camera. Giving any more detailed an answer will require seeing what code you already have.
@StarManta : Basically, when a camera is created, I want to automatically assign it main camera’s depth + 1.