If I generate a list of Vector3 positions is there a way to programatically add virtual cameras to a clear shot camera at each of the positions. I would be looking to add a standard follow camera and have its follow be an invisible game object at the position and its follow be another game object, or do I have to manually add 400 cameras and then set each of their variables in the code.
I looked into the ChildCameras[ ] but it is get only.
For anyone coming in here looking at this here is the code I used
CinemachineVirtualCamera vcam = new GameObject().AddComponent<CinemachineVirtualCamera>();
vcam.name = "YourName";
vcam.transform.SetParent(theclearshotCameratransform);
vcam.transform.position = Vector3.zero; // Set to your desired position
vcam.m_Lens.FieldOfView = 42; // set to desired fov
CinemachineCollider tvCollider = new CinemachineCollider();
tvCollider.m_CollideAgainst = LayerMask.GetMask("Default");
vcam.As<CinemachineVirtualCameraBase>().AddExtension(tvCollider);