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

1. Conventions

1.1 Namespaces and reference assembly

The namespaces listed in the following table belong to the engine assembly.

NamespaceContent
MySys22.Engine.APIstatic facade Dialogue, IDialogueView — game usage namespace
MySys22.DialogueEngineGameSetup, DialogueBridge
MySys22.DialogueEngine.Coredata, loading, actions, variables, quests, position
MySys22.DialogueEngine.UIDialogueUICanvas, DialogueOverlayUI
MySys22.DialogueEngine.AudioDialogueAudio, IDialogueAudioProvider

Reference rule: game code uses Dialogue.*; the Core namespaces are used to extend the engine.

1.2 Naming conventions

1.3 Error handling

1.4 Threading model

1.5 Initialization preconditions

2. Startup and lifecycle

2.1 Startup by means of components

Adding the GameSetup component to the scene causes complete initialization of the engine and the start of the dialogue. The presence of GameSetup excludes double starts, since the start is managed by the component itself.

2.2 Startup by means of code

The following example subscribes to the bridge events and starts the dialogue.

using MySys22.Engine.API;

public class MyGame : MonoBehaviour
{
    void Start()
    {
        Dialogue.Bridge.OnLine += (speaker, text) => Debug.Log($"{speaker}: {text}");
        Dialogue.Bridge.OnChoices += choices => Dialogue.Bridge.Choose(0);
        Dialogue.Bridge.OnDialogueEnd += () => Debug.Log("done");

        Dialogue.Bridge.StartDialogue();
    }
}

2.3 Lifecycle sequence

The expected sequence is the following:

  1. Initialization of the bridge by means of Initialize() or InitializeAsync().
  1. Loading of the data: Project, Graph, GraphPath, Manifest.
  1. Start of the dialogue by means of StartDialogue().
  1. Advancement by means of Continue() or selection of an option by means of Choose(int index).
  1. Stop by means of StopDialogue(), restart by means of Restart(), reload by means of Reload().