[solved] Zooming In/Out with a TargetGroup camera, FOV

Hi, I’m using a TargetGroup camera, and I would like to Zoom In/Out whenever the main character enters a specific region.

I noticed that adjusting the Minimum FOV in the Aim section of the CinemachineVirtualCamera component achieves this - but I’m not sure how to change this value via script. Is this possible at all?

I searched online and the only solution I found (which I’m not too happy with for my game), is to have several cameras and change between them.

Is there any other simple, viable approach?

Thank you in advance,
-ViLa4480

Changing the group framing size also mostly works, but I have no idea how to change this value… please clarify! Thank you!

Group framing size: A value of 1 means “let the whole group exactly fill the screen”. 0.5 means "let the group occupy 1/2 of the screen, and so on. You would do vcam.GetCinemachineComponent().m_GroupFramingSize = bla

To change the minimum FOV, you can do
vcam.GetCinemachineComponent().m_MinimumFOV = bla

That was perfect, thank you so much! :slight_smile: