Skip to content

Skipped second awaited StartDialogue #101

@jinroku42

Description

@jinroku42

What is the current behavior?

I start two dialogues one after another and await them to end. First one works fine, but second one is skipped.

Please provide the steps to reproduce, and if possible a minimal demo of the problem:
Here's an example I wrote to test this issue.

await dialogueRunner.StartDialogue(dialogueNameOne);
await dialogueRunner.DialogueTask;
await dialogueRunner.StartDialogue(dialogueNameTwo);
await dialogueRunner.DialogueTask;

What is the expected behavior?

I expect that the second dialogue will show instead of being totally ignored.

Please tell us about your environment

  • Operating System: Win11
  • Yarn Spinner Version: 3.1.3
  • Extension Version: 3.0.463
  • Unity Version: 6000.3.2f1

Other information

I tested it to understand is this a bug or just how the YarnSpinner works. And it seems strange to me that this code works fine, the dialogue switches mid sentence:

await dialogueRunner.StartDialogue(dialogueNameOne);
await Task.Delay(1000);
await dialogueRunner.StartDialogue(dialogueNameTwo);
await dialogueRunner.DialogueTask;

But if I wait for the first one to end - second is just skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething not working as intendedUnityIssues concerning the Unity engine-specific code in the YarnSpinner-Unity repo

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions