Missing database after playing specific scene

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rita0424
Posts: 5
Joined: Tue Nov 08, 2022 11:07 pm

Missing database after playing specific scene

Post by rita0424 »

Hi, I am making a unity game, the game has lots of scene.
The leader segment scene is an animation and it is importing by other member .

After playing the leader segment animation scene and get into the chater one game scene, the dialogue system database will missing and player can't trigger the dialogue.

But, If I play the chater one game scene directly (doesn't play the leader segment scene) , all of the dialogue system database will remain.

How can I solve the error that my chapter one scene will missing database if I play leader segment first?
Thanks

this is a video that playing and will missing database:
https://lurl.cc/0Yo1Yr
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing database after playing specific scene

Post by Tony Li »

Hi,

Open your chapter one scene. Drag the Dialogue Manager GameObject into the Project view to create a prefab variant:

createDialogueManagerVariant.png
createDialogueManagerVariant.png (41.68 KiB) Viewed 135 times

This prefab variant will contain all of your Dialogue Manager customizations.

Then open your loader scene. Add the Dialogue Manager prefab variant to it:

addVariantToFirstScene.png
addVariantToFirstScene.png (40.66 KiB) Viewed 135 times


Related information: How To: Manage Player Controls and Scene Changes
Post Reply