How can I make a Cinemachine extension to be applied for every virtual camera in scene? Currently I have 2d confiner on my main virtual camera, and once the control is passed to secondary virtual camera I need that 2d confier to still have effect. Trivially adding an extension to every virtual camera does not seem to scale well as the number of cameras can raise.
“Manager-style” vcams, such as StateDrivenCamera, MixingCamera, and BlendListCamera, allow you to place an extension on them, which will apply to all their managed vcam children. You could either use one of those manager classes, or make a new kind of manager camera that does nothing but group the vcams and provide a place to hang global extensions on.
While that definitely makes sense, it is not very applicable to my particular design. I will explain in more details. I have one “main” camera that follows player. And then I have other cameras per each checkpoint. So when player dies, I disable main camera and enable camera on that particular checkpoint player is going to respawn at, to provide smooth camera movement.
A checkpoint can be located right on the edge of the map, so when camera moves on it and subsequently centers on it, the viewport gets to see outside of the map. And its looks even weirder when main camera takes action back and confines it again.
Making custom extensions-only manager camera sounds like it could be the most convenient way. Where should I look at to see how to pass down extensions?