Switching between body types in runtime from code

Hello, I have a quick question.

If I create in code GameObject with CinmeachineVirtualCamera component, how can I via script define what Body type I want to use (I want to be able to pick between DoNothing/Transposer/Tracked Dolly)? I would also like to possibly modify this type later on if that is possible.

vcam.AddCinemachineComponent etc.
https://docs.unity3d.com/Packages/com.unity.cinemachine@2.6/api/Cinemachine.CinemachineVirtualCamera.html

1 Like

Thanks! I thought that there was some less roundabout way to do it, that was my first solution GetCinemachineComponent to check what kind of camera it is, Remove and Add if necessary.