Hello,
I’m wondering how easy it is to integrate cinemachine virtual cameras with an existing camera script.
Right now I have a script on my camera that handles all positioning and rotation (“attaching” to a character, avoiding geometry, …).
Now let’s say I’d want to start a cutscene where the camera should move to a predefined location; would I have to disable my own camera script?
I would like to avoid having to disable my own camera script for various reasons and I wondered if there was a way to bypass the problem like this:
I’d change make my camera script so it controls a virtual camera instead of the real one,
then I could interpolate the real camera (the gameobject with the actual rendering camera component on it) between vcam1 and vcam2 (my cutscene).
Is that possible? Can I just assign values to a virtual camera like that?
Or is there a better way to do this that wouldn’t require me changing my camera script at all?