Page 1 of 1

Camera(original,,) sequence command in Cinemachine

Posted: Sat May 13, 2023 9:30 am
by robster21
Is there a Cinemachine Sequence command like Camera(original,,seconds)?
I want to return my Camera to the position where the conversation begins.

Re: Camera(original,,) sequence command in Cinemachine

Posted: Sat May 13, 2023 10:29 am
by Tony Li
Hi,

No, but let's say you have two vcams: one that follows the player during regular gameplay, and a second for a conversation. The gameplay vcam's priority is 1, and the conversation vcam's priority is 0. This means that during regular gameplay Cinemachine will use the gameplay vcam.

You can add a Cinemachine Priority On Dialogue Event component to the conversation NPC, assign the conversation vcam, and specify priority 2. During conversations, Cinemachine will switch to the conversation vcam since this component gives it higher priority. When the conversation ends, the component sets the priority back down to 0, so Cinemachine will blend back to the gameplay camera.

Or you can do the same with CinemachinePriority() sequencer commands in your conversation.