I have serialized a field in the inspector for a CinemachineFramingTransposer. But when I try and drag the Virtual Camera into the field, it’s not accepted. Is there anyway I can reference the camera’s FramingTransposer in the inspector? I am trying to avoid using GetComponent.
Ah, I see. Well, at least its possible in CM 3.0. I’m excited for the release.
Thanks for the reply!
Edit: Spoke a bit too soon. Still not quite understanding something.
Does the VirtualCamera require specific settings to get the framing transposer component?
Here’s what the VirtualCamera looks like in the inspector:
Then I’m trying to access the FramingTransposer this way:
myVirtualCam.GetComponent<CinemachineFramingTransposer>().m_TrackedObjectOffset = new Vector3(1, 1, 1);
My problem is that the CinemachineFramingTransposer is always null.