Page 1 of 1

Missing database after playing specific scene

Posted: Tue Nov 08, 2022 11:10 pm
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

Re: Missing database after playing specific scene

Posted: Wed Nov 09, 2022 8:16 am
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 139 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 139 times


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