When the conversation ends, the sequencer moves the camera back to the original recorded position.
If you don't want the camera to return to its original position at the end of the conversation, there are two options:
1. Use MoveTo() sequencer commands to move the camera instead of using Camera() commands.
2. Or write a sequencer command that sets the original position to the camera's current position. For example
Code: Select all
using UnityEngine;
namespace PixelCrushers.DialogueSystem.SequencerCommands
{
public class SequencerCommandSetCameraHomePosition : SequencerCommand
{
void Awake()
{ // (Assumes one conversation running at a time.)
var sequencer = DialogueManager.conversationView.sequencer;
sequencer.originalCameraPosition = sequencer.sequencerCameraTransform.position;
Stop();
}
}
}