Automatic Articy import via editor script
Posted: Tue Aug 23, 2022 6:46 am
Hey,
I've been looking for ways to ease the Articy/Dialogue System pipeline for our designers and one feature request that came up was triggering an automatic import of the Articy xml file in the Dialogue System upon exporting it (instead of bringing up the editor window and doing it manually).
Is there a way to accomplish this? I've successfully tracked down the xml file change with an asset post processor, but the only call I've seen in the docs to import it to the DS is
which returns a DialogueDatabase that I'm not sure how to save in the project.
I've tried
but it doesn't update the database, even passing Overwrite = true in the prefs. (I assume this only works at runtime as specified in the import section of the docs)
Thank you.
I've been looking for ways to ease the Articy/Dialogue System pipeline for our designers and one feature request that came up was triggering an automatic import of the Articy xml file in the Dialogue System upon exporting it (instead of bringing up the editor window and doing it manually).
Is there a way to accomplish this? I've successfully tracked down the xml file change with an asset post processor, but the only call I've seen in the docs to import it to the DS is
Code: Select all
ArticyConverter.ConvertXmlDataToDatabase(xmlFilename, converterPrefs, null);
I've tried
Code: Select all
DialogueManager.AddDatabase(db);
Thank you.