Search code examples
c#unity-game-enginedialogunity3d-gui

Unity dialogue import


I'm trying to import my dialog into Unity 5. Is there some kind of default Unity function to do that? For example, importing all the dialogue from an outside source like Word, or Notepad++, and assigning it directly to all the characters interactions. Currently there is a LOT of dialogue. I wrote a script in C# that lets you add the dialog into Unity but you have to write every possible Question, Answer, Interaction, Cutscene_Dialogue etc., into the forms manually. Is there some default Unity plugin available to use that lets me assign all of the conversations to the characters? I'm currently using Unity 5 free edition.

The game is not RPG, it's a Point & Click adventure, can the RPG dialogue logic be applied all the same? I found the Dialog XML importer and Dialogue System for Unity in the asset store, looks like they would do the trick, as they simplify the process, I just want to know if theres a a custom solution for importing without the need to buy an asset or typing manually all of the interaction in the boxes.


Solution

  • You can just write your own XML file and import it, you don't need an asset for that. In the XML file you can have an attribute in the header of each dialog to be able to define who should say what. The XML document class can help with that and be used to load the file too.