SetDialoguePanel(false) cause TypewriterEffect null reference

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
joeylu
Posts: 111
Joined: Sun May 17, 2020 1:07 pm

SetDialoguePanel(false) cause TypewriterEffect null reference

Post by joeylu »

Hi Tony,
Got another issue, Say I have a set of dialogue entries, I put SetDialoguePanel(false) at the first node sequence, it will cause the next node get the null reference error
NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.TextMeshProTypewriterEffect.Stop () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Utility/TextMeshProTypewriterEffect.cs:432)
I believe it is related to the subtitle panel of the node actor, the subtitle panel is from one of the prefab "Bubble Template Standard UI Subtitle Panel", do you have any idea about how can I fix this error?

tks
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Post by Tony Li »

joeylu
Posts: 111
Joined: Sun May 17, 2020 1:07 pm

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Post by joeylu »

Still getting null exception error, this time is on line 259

NullReferenceException: Object reference not set to an instance of an object
PixelCrushers.DialogueSystem.TextMeshProTypewriterEffect+<Play>d__40.MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/UI/Utility/TextMeshProTypewriterEffect.cs:259)
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Post by Tony Li »

I updated the patch above. I think that should do it.
joeylu
Posts: 111
Joined: Sun May 17, 2020 1:07 pm

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Post by joeylu »

error is gone, thank you Tony
Last edited by joeylu on Sun Dec 10, 2023 12:06 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Post by Tony Li »

Glad to help!
Post Reply