- Home /
How can I smoothly change a cinemachine camera's target through script?
I'm working on a 2d game and I need to be able to pan the camera to a transform to bring attention to it. Is there any code that will allow me to do this?
Answer by Adam_Myhill · Feb 19, 2018 at 11:37 PM
It's better to blend to another vcam with that as the target. This way, you not only get a smooth blend but you can make any other camera changes you'd like - FOV, position - anything - and they will smoothly blend along too.
CM is meant to blend between lots of vcams, not make one camera which tries to do everything.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Why isn't a function being called by my boolean? 3 Answers
Show squares in the camera 0 Answers
Scene Is Missing A Full Screen Camera? 2 Answers
Can I create a blinking effect on my first person camera with vignette? 0 Answers