Installation

Use this page when importing the asset into a project or verifying that a scene has the minimum wiring required for runtime playback.

Unity version

The codebase targets Unity 2021.3 LTS or newer. The project changelog also indicates validation across later LTS/editor versions.

Package dependencies

From the current Packages/manifest.json, the key runtime/editor dependencies are com.unity.textmeshpro, com.unity.ugui, and the editor GraphView APIs used in authoring tools.

Scene setup checklist

  1. Add a DialogManager to the scene.
  2. Assign a DialogUIController to DialogManager.uiPanel.
  3. Assign an AudioSource if voice or UI audio is required.
  4. Add one or more DialogGraph entries in dialogGraphs.
  5. Map each graph to a stable dialogID.
Common integration miss If the graph exists but the conversation does not start, the missing piece is often the dialogID mapping on the manager rather than the graph asset itself.

Optional runtime pieces

  • DialogActionRunner if you use action nodes
  • DialogueHistory and DialogueHistoryView if you want backlog support

Global settings asset

The settings runtime loader expects the master settings asset at Resources/DialogSettingsSO/DialogSystemSettings. In this repository, the editor settings window creates and maintains that asset automatically.

Open Tools → Dialogue Graph System → Settings to create or verify the master settings asset and its sub-assets.

Input system notes

The code supports legacy input and newer input packages through InputHelper. If you use the new Input System only, make sure the scene EventSystem is configured accordingly.

AI extension setup

The optional AI extension depends on the main dialog system, a DialogAISettings asset in a Resources folder, and at least one provider asset such as OpenAI, Gemini, Ollama, or a custom JSON provider.

  • Create a provider asset under Assets/DialogSystemAIExtension/ProviderAssets, duplicate one from Assets/DialogSystemAIExtension/Samples/ExampleAssets/Provider, or use your own folder.
  • Hosted providers require your own API key; shipped provider samples are templates only.
  • For OpenAI-compatible services, prefer a root baseUrl plus /v1/chat/completions in chatEndpoint.
  • Review the AI draft preview before confirming any change. The shipped AI workflow is preview-first.

Verify your install

  1. Open Assets/DialogGraphSystem/DemoScenes/DialogueDemo.unity.
  2. Enter Play Mode and select any of the three sample graphs from the demo menu.
  3. Confirm line reveal, choice display, and skip/autoplay behavior.
  4. Open the graph editor via Tools → Dialogue Graph System → Dialogue Graph and load one of the sample graphs from Assets/DialogGraphSystem/Graphs/.

Suggested visuals

DialogManager inspector

Dialog Manager Inspector

Shows graph mapping, UI panel assignment, and optional runner wiring.

Settings window

Settings Text

Shows how the global settings asset is created and managed.