Page 1 of 1
Weird error
Posted: Sat Aug 14, 2021 11:21 pm
by soniclinkerman
Hey,
I keep getting this error when I want to run the dialogue system
- issue2.png (172.53 KiB) Viewed 447 times
This is what my conversation looks like in terms of trigger
- issue1.png (78.06 KiB) Viewed 447 times
Re: Weird error
Posted: Sun Aug 15, 2021 8:07 am
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.
Re: Weird error
Posted: Sun Aug 15, 2021 8:14 am
by soniclinkerman
Sure.
Is this what you need?
- issue3.png (901.52 KiB) Viewed 443 times
Re: Weird error
Posted: Sun Aug 15, 2021 8:27 am
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.
Re: Weird error
Posted: Sun Aug 15, 2021 9:02 am
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!
Re: Weird error
Posted: Sun Aug 15, 2021 11:50 am
by Tony Li
Glad to help!