Page 1 of 1

Smooth Camera Transition when using Continue option

Posted: Wed Sep 29, 2021 2:23 pm
by tootyboi95
Hi,

Firstly, thanks for this great asset. I have recently set the 'Continue Button' on the Dialogue Manager prefab to true, in order for the player to skip the gradual loading of the text if desired.

I have also been following the camera tutorial here (https://www.youtube.com/watch?v=LJb6OYD ... b&index=10). Unfortunately, the smooth transition of the camera is affected with the Continue button set to true. In other words, if the player triggers the continue button, the camera which is transitioning will suddenly snap to its end position, causing it to be very jarring.

Is there a way for the player to use the 'continue button' functionality, but yet ensure smooth camera transitions?

Thanks!

Re: Smooth Camera Transition when using Continue option

Posted: Wed Sep 29, 2021 2:31 pm
by Tony Li
Hi,

The Camera() sequencer command is designed to snap to its final position if you use the continue button to skip to the end of the subtitle.

If you want it to continue moving smoothly instead, you could write a custom sequencer command (tutorial) or use Cinemachine. If you use Cinemachine, you can use the CinemachinePriority() or CinemachineTarget() sequencer commands to tell the camera where to go, and Cinemachine will move there smoothly.

Re: Smooth Camera Transition when using Continue option

Posted: Sat Oct 02, 2021 1:38 am
by tootyboi95
Hi,

Thanks for your reply. I am actually using a Cinemachine FreeLook Camera instead of a Cinemachine Virtual Camera to follow my player during gameplay. I wonder if methods like CinemachineTarget() would work? I played around with these commands but it didn't work (Freelook Follow Camera ThirdPerson is the name of the gameobject containing the CinemachineFreelook component).

Code: Select all

CinemachineTarget(Freelook Follow Camera ThirdPerson, speaker);
{{default}}
It seems to me that this method only works for CinemachineVirtual Cameras, based on the specs here. Can we somehow make it work with Freelook cameras?

Thanks!

Re: Smooth Camera Transition when using Continue option

Posted: Sat Oct 02, 2021 7:32 am
by Tony Li
What if you use CinemachinePriority() to switch to a virtual camera during conversations?