How to Skip Entire Cutscenes?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dlees9191
Posts: 7
Joined: Mon Apr 22, 2024 6:05 pm

How to Skip Entire Cutscenes?

Post by dlees9191 »

Hi! I'm wanting to make a button in the pause menu that skips the current scene that is playing.

I've seen this thread, but that solution is more like a fast-forward feature, and I can still see dialogue boxes and character movements flash before my eyes. I want it to be more like when you skip a scene in an action-adventure game.

Any ideas? Thanks!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to Skip Entire Cutscenes?

Post by Tony Li »

Hi,

You could configure your skip button to call this C# method:

Code: Select all

PixelCrushers.DialogueSystem.DialogueManager.StopConversation();
That will stop the conversation, skipping all nodes that remain in the conversation.

Alternatively, if you want to fast-forward through the nodes without showing anything, add a Conversation Control component to your Dialogue Manager or dialogue UI and call its SkipAll() method. This is useful if some of the nodes that remain perform actions such as setting quest states or activating GameObjects.
Post Reply