Page 1 of 1

SetDialoguePanel(false) cause TypewriterEffect null reference

Posted: Sat Dec 09, 2023 12:19 pm
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

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Posted: Sat Dec 09, 2023 8:20 pm
by Tony Li

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Posted: Sat Dec 09, 2023 9:57 pm
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)

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Posted: Sat Dec 09, 2023 10:38 pm
by Tony Li
I updated the patch above. I think that should do it.

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Posted: Sat Dec 09, 2023 11:30 pm
by joeylu
error is gone, thank you Tony

Re: SetDialoguePanel(false) cause TypewriterEffect null reference

Posted: Sat Dec 09, 2023 11:34 pm
by Tony Li
Glad to help!