Clear Database

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Grayson
Posts: 20
Joined: Wed Jan 13, 2021 4:00 pm

Clear Database

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

Re: Clear Database

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