Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Dialogue Designer - documentation

Documentation for Dialogue Designer editor. · By radmatt

Does not work out of the box with Unity JsonUtility

A topic by Brian MacIntosh created May 04, 2020 Views: 361 Replies: 4
Viewing posts 1 to 3
(+1)

I've just started playing with this tool, but I really like what I've seen so far.  I just wanted to point on that the exported JSON cannot be deserialized out of the box by Unity's JsonUtility, so the documentation probably shouldn't suggest using that.

  • JsonUtility cannot deserialize top-level arrays, only objects (the exported JSON has a top-level array). This can be worked around by stripping the square brackets, but...
  • JsonUtility absolutely cannot handle properties that can have varying types (such as the 'value' property for variables). These would have to use a common type, such as string, or be named differently based on the type.

The developer will need to use a more robust JSON deserializer to load these files in Unity.  Or if you are still adding features to this tool, perhaps the project settings could allow you to specify an output engine and adjust the output to accommodate these limitations.

+1 , it would be quite nice to actually see some kind of advanced Unity runtime integration like for example InkleStudios Ink has

(+1)

I ended up writing a runtime for Unity. You can get it at https://github.com/BrianMacIntosh/DialogueDesignerUnity.

Awesome!

I ended up writing a runtime for Unity for my project. You can get it at https://github.com/BrianMacIntosh/DialogueDesignerUnity.