I just read the blog post tutorial and they mention that you should set up multiple cameras and switch between them. But how are we supposed to do this? I know how to turn off a camera and turn another one on, but surely that can’t be what they mean? There must be some kind of smooth transition system?
Indeed there is. You have one Unity camera, with a Cinemachine Brain component. That stays on all the time.
Then, you have multiple Virtual Cameras that you activate and deactivate as needed. Simply activate/deactivate their GameObjects. The Brain will take care of the blending.
Hi, may i know can i have one main camera without a Cinemachine Brain component, second camera with Cinemachine Brain component and multiple virtual camera? and switch between them, is it will work
You can have multiple CM Brains in the scene. Each will filter vcams according to the culling mask in the associated camera. Active vcams on the visible layers will drive the brain. There is no hard link.
What is the best way to switch cameras in terms of performance? Activate/deactivate their GameObjects, increase/decrease their Priority, or to use MoveToTopOfPrioritySubqueue() function?
Unless you are trying to change cameras a thousand times every Update(), none of these will have any impact on your game’s performance. This is thinking backwards-- you should run the game, measure the game’s performance in the profiler tools, find the thing that is holding your game back from performing well, and go fix that, IN THAT ORDER.