Page 1 of 1

How to open Dialogue DB from editor script ?

Posted: Thu Nov 12, 2020 10:46 pm
by Strook
Hello,

i would like to create a very simple editor script that would open a specific dialogue DB window. Its a bit slow to everytime having to navigate to the dialogue DB in the project, or select the Dialogue manager.


Im basically looking for a function lilke DialogueDatabase.OpenEditor() :lol:

is this possible ? thanks !

Re: How to open Dialogue DB from editor script ?

Posted: Fri Nov 13, 2020 7:42 am
by Tony Li
Hi,

Call DialogueEditor.DialogueEditorWindow.OpenDialogueEntry(database, conversationID, entryID). For example, to open conversation ID 1, dialogue entry ID 42:

Code: Select all

PixelCrushers.DialogueSystem.DialogueEditor.DialogueEditorWindow.OpenDialogueEntry(myDatabase, 1, 42);

Re: How to open Dialogue DB from editor script ?

Posted: Fri Nov 13, 2020 8:45 pm
by Strook
awesome that works great, thanks !! It going to save me so much time :D

Re: How to open Dialogue DB from editor script ?

Posted: Fri Nov 13, 2020 9:00 pm
by Tony Li
Glad to help!