Weird error

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Weird error

Post by soniclinkerman »

Hey,

I keep getting this error when I want to run the dialogue system
issue2.png
issue2.png (172.53 KiB) Viewed 499 times
This is what my conversation looks like in terms of trigger
issue1.png
issue1.png (78.06 KiB) Viewed 499 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Weird error

Post by Tony Li »

Hi,

Can you scroll down in the bottom part of the Console window entry for that error?

The error is most commonly caused by a misconfigured UnityEvent, such as the OnExecute() event in a Dialogue System Trigger or any of the events in a Dialogue System Events component.
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Re: Weird error

Post by soniclinkerman »

Sure.

Is this what you need?
issue3.png
issue3.png (901.52 KiB) Viewed 495 times
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Weird error

Post by Tony Li »

Thanks! On your dialogue UI, inspect the OnOpen(), OnClose(), and OnBackButtonDown() UnityEvents on your Dialogue Panel, subtitle panels, and menu panel(s). One of those UnityEvents is probably misconfigured.
soniclinkerman
Posts: 82
Joined: Wed Mar 31, 2021 6:48 pm

Re: Weird error

Post by soniclinkerman »

I think I got it. The issue was a null reference it seems. Dialogue manager was expecting a sfx to play from the gamemanager, but because the gamemenager reference wasn't added to the UI part of the manager, it wasn't working.

Thanks a ton for your help!
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Weird error

Post by Tony Li »

Glad to help!
Post Reply