Page 1 of 1

The Second Conversation's First DialogueText wouled run 2 times in TextMeshProTypewriterEffect>().onEnd

Posted: Fri Jan 08, 2021 1:06 am
by shortlin
I wrote a auto play function,so I added the OnContinueConversation() in the TextMeshProTypewriterEffect>().onEnd.

I had a problem is why when I played the second conversation's first dialogueText, it would run two times in TextMeshProTypewriterEffect>().onEnd.

There is no problem in the vision(means the dialoueText player just see one time,but script use debug.Log in the end would see two times).

The first time showed when the start node begin,I used Debug.Log(DialogueManager.currentConversationState.subtitle.dialogueEntry.currentDialogueText); ,it would show the dilaougueText when the Start Node run but the dialogueText is not played end.(and then the text ended,the debug.Log will show,so it run two times)

and this problem just after second conversation .The first conversation would not happend.

And it also just happened in the first node'(Means next the START's node).

I treied to add a count to skip the first conversation end.but I think it is not a good way.

Re: The Second Conversation's First DialogueText wouled run 2 times in TextMeshProTypewriterEffect>().onEnd

Posted: Fri Jan 08, 2021 10:23 am
by Tony Li
Hi,

Does the end of the first conversation link to the <START> node of the second conversation? If so, can you link the end of the first conversation to the next node of the second conversation (not the <START> node)?

Re: The Second Conversation's First DialogueText wouled run 2 times in TextMeshProTypewriterEffect>().onEnd

Posted: Fri Jan 08, 2021 10:52 am
by shortlin
No
The two coversations is using DialogueManager.StartConversation(Title_Name) in different time. and thy are not linked it. I So I Said after two conversation. means it would happen in the the third conversation.

Re: The Second Conversation's First DialogueText wouled run 2 times in TextMeshProTypewriterEffect>().onEnd

Posted: Fri Jan 08, 2021 11:06 am
by Tony Li
Can you please send a reproduction project or reproduction steps to tony (at) pixelcrushers.com? (If it's not a problem and you don't want to take the time to send a reproduction project, that's fine. Don't feel obligated to send it.)

Re: The Second Conversation's First DialogueText wouled run 2 times in TextMeshProTypewriterEffect>().onEnd

Posted: Mon Jan 11, 2021 3:55 am
by shortlin
Sorry I forgot I had ask the question.
Finally I used <TextMeshProTypewriterEffect>().isPlaying==false after 0.1 seconds to judge that time could auto play.
But It was still not a good way.So Maybe I would take sometimes to reappear the problem in a small project and sent it.