1. Suppose you have 10 lines.
2. I want to skip 10 or more conversations at once by pressing the skip button and end the conversation.
3. I want to create a skip button.
Is there a Skip function?
Re: Is there a Skip function?
You can use this method to immediately end the conversation:
Will that do what you want it to do?
Code: Select all
DialogueManager.StopConversation();
Re: Is there a Skip function?
Can I write it like this in my C # code?
Re: Is there a Skip function?
Yes. Also put this at the top of your script:
Or use the full name:
Or, if you don't want to write any C# code, you can point a UnityEvent, such as the OnClick() event of a UI Button, to the Dialogue Manager's DialogueSystemController.StopConversation method. If you do this, make sure the UnityEvent's GameObject is also Don't Destroy On Load so it doesn't lose track of the Dialogue Manager during scene changes.
Code: Select all
using PixelCrushers.DialogueSystem;
Code: Select all
PixelCrushers.DialogueSystem.DialogueManager.StopConversation();
Re: Is there a Skip function?
Thank you ~
You are my strong helper
You are my strong helper
Re: Is there a Skip function?
Happy to help!