Dialogue doesn't work after build.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Tsuna
Posts: 1
Joined: Tue Mar 09, 2021 6:40 am

Dialogue doesn't work after build.

Post 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.
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue doesn't work after build.

Post 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.
Post Reply