MySys22.DialogueSystem
Document
1.0
Engine
0.5 BETA
Editor
0.5 BETA
Updated
2026-09-28

3. Initial configuration procedure

The following procedure produces a working dialogue consisting of a line associated with a character.

  1. In Unity, open the window MySys22 ▸ Dialogue ▸ Dialogue Graph Editor.
  1. On the canvas, select with the right button Add Dialogue Node and specify the fields Speaker

(identifier of the character), Start DID and End DID.

  1. Select the node, open the context menu and choose Set as Start Node; the node concerned is

highlighted with a green border.

  1. Save the graph with File ▸ Save. The file is written to Assets/StreamingAssets/Graphs.
  1. In the Java editor, select New Project and specify name, language and path of the Unity

project.

  1. Open the lines tab, insert the rows with identifier LID corresponding to the DID defined in

the graph, then draft the texts.

  1. Select the button Inject to transfer the content to the Unity project.
  1. In Unity, add the GameSetup component to the scene, or use Setup Scene, and start playback:

the dialogue is presented on screen.

If [317] No dialogue graph found is signalled in the Console, the configured graph has not been located: set the field Graph of the GameSetup component to the desired graph and verify that the corresponding file is present in Assets/StreamingAssets/Graphs.

4. Data structure on disk

4.1 Runtime contract (Unity project)

The engine reads the dialogue data from the Assets/StreamingAssets folder:

Assets/StreamingAssets/
├── engine.manifest.json                  project descriptor
├── engine.graphdigest.json               list of the DID used by the game
├── Graphs/
│   ├── <grafo>.graph.yaml                dialogue graphs
│   └── manifest.txt                      index of the graphs
├── Dialogue/
│   └── <LINGUA>/
│       ├── <CID>.yaml                    lines of a character
│       └── manifest.txt                  index of the line files
├── Characters/
│   └── characters.list.yaml              identifiers and names of the characters
└── Variables/
    └── variables.yaml                    variables used by the conditions

4.2 Writing project (Java editor)

The editor stores the content in a dedicated project folder, defined at creation time. The structure comprises the file .project.yaml, the databases lines/<LINGUA>/<CID>.yaml, the folders Characters and variables, and the digest imported from the engine.

The deploy operation copies and normalizes such content into the Assets/StreamingAssets folder, without requiring the intervention of Unity.