Page 1 of 1

Dialogue doesn't work after build.

Posted: Tue Mar 09, 2021 10:05 am
by Tsuna
Hello. Why doesn't the dialogue work after the build? In the Unity editor, the dialog works.
After the build, a message appears:
Dialogue System: No dialogue database is assigned.
Dialogue database is included in the editor.

Re: Dialogue doesn't work after build.

Posted: Tue Mar 09, 2021 10:48 am
by Tony Li
Hi,

Open your build settings window, and check from the first scene in the list. The first Dialogue Manager to exist will continue to survive scene changes at runtime, replacing the Dialogue Managers in subsequent scenes. Make sure that first Dialogue Manager is configured the way you want. I recommend saving a copy of that Dialogue Manager as a prefab or prefab variant, and using it in any other scenes where you've placed a Dialogue Manager for in-editor playtesting. That way any changes you make to the prefab will automatically be reflected in all of the scenes that reference the prefab.