I have access to the singular CinemachineBrain
in my scene. I can get brain.ActiveVirtualCamera
, but that’s of type ICinemachineCamera
. Looks like ICinemachineCamera
had a VirtualCameraGameObject: GameObject
reference in Cinemachine 2.X
, but not in 3.X
?
Without access to the gameObject, how am I meant to access the components on the active cinemachineCamera? Specifically I need to access the PositionComposer.
Same question for CinemachineCore.CameraActivatedEvent
, which seems like the other way I would go about getting the currently active camera.