Page 1 of 1

Clear Database

Posted: Wed Nov 15, 2023 1:46 pm
by Grayson
I have a different Dialogue Database for each scene in my game. Is there an easy way to clear all the content from the database (e.g. actors, conversations)? I want to retain the dialogue settings between scenes (Display settings), but have different actors and conversations.

Thanks.

Re: Clear Database

Posted: Wed Nov 15, 2023 2:50 pm
by Tony Li
Hi,

You can do it in code, or by unticking your Dialogue Manager's Other Settings > Don't Destroy On Load checkbox, but the easiest way is to:

1. Assign an empty database to the Dialogue Manager's Initial Database field. (Or a database that has any info you want to share across scenes.)

2. Add an Extra Databases component to a GameObject in each scene.
  • Set Remove Trigger to On Destroy.
  • Assign the scene's dialogue database to it.