YarnSpinner-Unity
YarnSpinner-Unity copied to clipboard
Cannot stop a dialogue
I want to skip a dialogue. Then I call runner.stop(), but it is unuseable. Maybe there is a bug about it?
I don’t know what your exact problem is, but I’m just inferring from the conversation on Discord and your screenshots.
DialogueRunner.Stop
only stops the Dialogue Runner from running, it does not dismiss any of the Dialogue Views (hiding the UI) and does not trigger any Dialogue Complete events. It does not pause the dialogue at all.
From the code you posted, it works as expected. Both your OnStop
and OnStart
have the same Debug.Log
message. StartDialogue
will always start the dialogue at the beginning of the node. As mentioned before, Stop
will only stop the Dialogue Runner, and the UI from your Dialogue Views still remain since you haven’t done anything to dismiss or hide them.
No, it is not that. When i call Stop, the runner can't be stopped, instead of it, it will replay the text again.
在 2022年7月12日,03:21,Khan-ali Ibrahim @.***> 写道:
I don’t know what your exact problem is, but I’m just inferring from the conversation on Discord and your screenshots.
DialogueRunner.Stop only stops the Dialogue Runner from running, it does not dismiss any of the Dialogue Views (hiding the UI) and does not trigger any Dialogue Complete events. It does not pause the dialogue at all.
From the code you posted, it works as expected. Both your OnStop and OnStart have the same Debug.Log message. StartDialogue will always start the dialogue at the beginning of the node. As mentioned before, Stop will only stop the Dialogue Runner, and the UI from your Dialogue Views still remain since you haven’t done anything to dismiss or hide them.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
I tried again by close UI manully, and it it successful! Thank you very much.
高伟成 @.***
------------------ 原始邮件 ------------------ 发件人: "YarnSpinnerTool/YarnSpinner-Unity" @.>; 发送时间: 2022年7月12日(星期二) 凌晨3:21 @.>; @.@.>; 主题: Re: [YarnSpinnerTool/YarnSpinner-Unity] Cannot stop a dialogue (Issue #184)
I don’t know what your exact problem is, but I’m just inferring from the conversation on Discord and your screenshots.
DialogueRunner.Stop only stops the Dialogue Runner from running, it does not dismiss any of the Dialogue Views (hiding the UI) and does not trigger any Dialogue Complete events. It does not pause the dialogue at all.
From the code you posted, it works as expected. Both your OnStop and OnStart have the same Debug.Log message. StartDialogue will always start the dialogue at the beginning of the node. As mentioned before, Stop will only stop the Dialogue Runner, and the UI from your Dialogue Views still remain since you haven’t done anything to dismiss or hide them.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
How did you solve this issue? I'm currently seeing the same problem, where after calling Stop
the first line of dialog will play again, and leave the UI open.
Even if I manually call DismissLine
or other similar functions it seems like eventually ContinueDialogue
is called by the system and the UI pops up.
I suspect this issue is the same problem: https://github.com/YarnSpinnerTool/YarnSpinner-Unity/issues/186
How did you solve this issue? I'm currently seeing the same problem, where after calling
Stop
the first line of dialog will play again, and leave the UI open. Even if I manually callDismissLine
or other similar functions it seems like eventuallyContinueDialogue
is called by the system and the UI pops up. I suspect this issue is the same problem: #186
Yes, I have already solved this problem. You can first go to the help section of Discord and search for chat records related to the user "Alain#6244". I have asked about this issue there and successfully solved it. If that doesn't work, please ask again on GitHub, and I will look for the relevant code.