How to Set a Cinemachine Default Virtual Camera
I have a scene where I have two virtual Cinemachine cameras, one that follows the player and one that is on a fixed position which zooms out on a large set piece. I have a Camera Change Trigger set up with a trigger box collider on it and have the settings set up so that when the player enters the collider, it Activates the secondary camera and then Deactivates it and goes back to the default player-following camera when the player leaves the trigger. Here's the problem: when I enter the scene, it starts on the secondary fixed camera no matter what and I want it to start on the default camera. However when I set the default camera's priority to be higher than the secondary camera, it never switches with the trigger because the default camera will always have a higher priority. If I set them to the same Priority, it still starts the scene on the secondary camera.
Is there a way to set the default camera to be the starting camera upon entering the scene?
Answer by NautilusCat · Mar 20, 2021 at 08:40 AM
Here's what worked for me. You just need to deactivate all other virtual cameras except the one you want as your default. Uncheck the little box at the very top of them in the inspector. That way the all keep the same priority and you can have the Trigger script activate or deactivate them during runtime.
Your answer
Follow this Question
Related Questions
How to make a FreeLook camera 1 Answer
Switching player controllers 0 Answers
Camera EdgeScrolling Question 0 Answers
I cannot move my camera in the Game mode 0 Answers
If player hits certain X value in opposition to Camera, shift camera question. 0 Answers