Hi Tony!
Is there some way to pause the conversation? I need it for the Menu appearance. Whan player call menu all process need to be stoped.
And can I somehow skip the conversation (or exit it) ?
Thank you.
Skip/Pause the Conversation
Re: Skip/Pause the Conversation
Hi,
Yes. Set DialogueTime.IsPaused to pause the sequencer, typewriter effect, etc.:
You'll probably also want to hide the UI. This depends on the GUI system you're using. If you're using legacy Unity GUI, set the GUIRoot's visible property false:
If you're using Unity UI, set the dialogue panel's CanvasGroup.alpha to 0:
To exit a conversation, call DialogueManager.StopConversation(). You can read DialogueManager.CurrentConversationState to record the state of the conversation first if you want. Then you can resume at that point by calling DialogueManager.StartConversation and providing the entry ID to start at.
Yes. Set DialogueTime.IsPaused to pause the sequencer, typewriter effect, etc.:
Code: Select all
using PixelCrushers.DialogueSystem;
DialogueTime.IsPaused = true;
Code: Select all
(DialogueManager.DisplaySettings.dialogueUI as UnityDialogueUI).guiRoot.visible = false;
Code: Select all
(DialogueManager.DisplaySettings.dialogueUI as UnityUIDialogueUI).dialogue.panel.GetComponent<CanvasGroup>().alpha = 0;