5. Unity interface reference
5.1 Main menu (MySys22 ▸ Dialogue)
| Menu item | Description |
|---|
Dialogue Graph Editor | opens the graph definition window |
Setup Scene | creates or restores the dialogue interface in the current scene (canvas, texts, choice panel) and connects the references |
Auto Setup Scene On/Off | enables or disables the automatic configuration of the scene on opening |
Validate Project | verifies graphs, identifiers, actions and choices; produces a report in the Console with the error codes |
Export Graph Digest | generates engine.graphdigest.json, containing the identifiers used by the game |
Reveal Graph Digest | shows the digest file in the file manager of the operating system |
Generate Index Manifests | regenerates Graphs/manifest.txt and all the files Dialogue/<LINGUA>/manifest.txt, required on Android, iOS and WebGL |
Generate Manifest for Current Language | regenerates the index of the current language only |
Generate AOT link.xml | generates the file link.xml, which prevents IL2CPP from eliminating the classes used for reflection (actions, YAML data types) |
Open Engine Folder | opens Assets/StreamingAssets in the file manager |
Open Project Folder | opens the folder of the Unity project |
Open Dialogue Editor (Java) | starts the Java editor |
Editor Settings... | configures the path of the Java editor (folder, Maven executable, jar archive) |
Engine Status | displays a summary: manifest, languages, graphs, loaded rows and active provider |
5.2 Inspector panel
The project section is present on the inspectors of the GameSetup and DialogueBridge components and comprises the following buttons.
| Button | Description |
|---|
Refresh | re-reads manifest, languages and graphs without reloading the dialogue |
Validate | performs the same verification as Validate Project, limited to the selected component |
Export Digest | exports the digest of the graphs used |
Graph Editor | opens the graph definition window |
Open StreamingAssets | opens the contract folder |
Open Dialogue Editor (Java) | starts the Java editor |
Editor Settings | opens the settings of the Java editor |
Configuration parameters:
| Field | Description |
|---|
Language | Project default or a specific language; it does not overwrite the preference stored by the player |
Graph | First graph found or a specific graph |
Auto start dialogue (GameSetup) | enables the automatic start of the dialogue at scene start |
Create overlay fallback (GameSetup) | in the absence of a connected interface, creates a minimal one, ensuring the presentation of the dialogue |
Enable logs (GameSetup) | enables or disables the log messages with prefix [MySys22.DialogueEngine] |
5.3 Dialogue Graph Editor window
| Command | Position | Description |
|---|
File ▸ New | command bar | creates an empty graph |
File ▸ Load | command bar | opens a file *.graph.yaml |
File ▸ Save | command bar | saves the current graph and rewrites the graph index |
File ▸ Save As... | command bar | saves the graph under a different name |
Add Dialogue Node | context menu of the canvas | inserts a line node, with the fields Speaker, Start DID, End DID, audio and automatic actions |
Add Choice Node | context menu of the canvas | inserts a choice node, with one output for each option (label, text identifier, condition) |
Add Function Node | context menu of the canvas | inserts a node that calls a game action (Action, parameters, wait) |
Add Condition Node | context menu of the canvas | inserts a node with two outputs, True and False |
Add Jump Node | context menu of the canvas | inserts a jump node towards another graph or a return to the calling graph |
Add End Node | context menu of the canvas | inserts a dialogue closing node |
Set as Start Node | context menu of a node | defines the initial node of the dialogue, highlighted with a green border |
Clear Start Node | context menu of the canvas | removes the designation of the initial node |
5.4 Node types
| Type | Function | Main fields |
|---|
| Dialogue | presents a line | Speaker (CID), Start DID, End DID, audio, repetition, voice per line, parallel and completion actions |
| Choice | presents a set of options | list of the options: label, identifier of the localized text, condition; one output per option |
| Function | calls application code and waits for its outcome | Action, parameters, wait for completion |
| Condition | routes the outcome of a function | two outputs, True and False, connectable to any node |
| Jump | transfers the execution to another graph | destination graph, return to the calling graph |
| End | concludes the dialogue | no field |
General guide