If you're importing or creating a database at runtime, you can view it in the Dialogue Editor with a bit of scripting. Assuming you've added the imported/created database to the Dialogue Manager (e.g., using DialogueManager.AddDatabase()), add this script inside a folder named Editor:
ViewMasterDatabase.cs
Code: Select all
using UnityEditor;
using PixelCrushers.DialogueSystem;
using PixelCrushers.DialogueSystem.DialogueEditor;
public static class ViewMasterDatabase
{
[MenuItem("Tools/View Master Database")]
public static void ViewMasterDatabaseMenuItem()
{
DialogueEditorWindow.OpenDialogueEditorWindow();
DialogueEditorWindow.instance.SelectObject(DialogueManager.masterDatabase);
}
}
At runtime, select menu item Tools > View Master Database. This will view the Dialogue Manager's runtime master database, which contains all of the database content from the Dialogue Manager's Initial Database and any databases you've added using DialogueManager.AddDatabase() or Extra Databases components.