Skip to main content
Version: 2026.7
Still in testing

The SDK of this version is still being tested, and these pages are being updated with it: names, menus and procedures may still change before the release. If you build content for a platform already in production, follow the documentation of that version — pick it from the version menu at the top right.

Dialogs (SPACS Dialogs)

Described from the code

This page describes the SPACS Dialogs package as it is written in the SDK's code. It has not been checked step by step in a published environment: where it differs from what you see, trust what you see.

SPACS Dialogs lets a character of the scene talk to the user: a text, and buttons with the user's answers that lead to the next text. It is installed with the SDK (see SDK setup), like the Task System it shares its graph engine with, and interpreted scripts can use it (Security rules).

How a dialog is built​

A dialog is a graph of Dialog nodes, built in the graph window like the graph of the Task System: the GraphBehaviour component has an Open Graph button.

  • One node is one text. A node has the character name, an avatar (a sprite), the dialog text, and up to four options, each with its label.
  • The options are the output ports of the node: Next / Option 1, then Option 2, Option 3 and Option 4. Each port you connect shows a button on the panel, with its label, and leads to the node it is connected to. A node has at most four options.
  • A node with no option connected ends the dialog. The path is then reset, and the dialog can be started again.
  • Branches can split and join again. A node accepts several incoming links, so two options can lead to the same next node.
  • Who speaks. Each node is shown on the player panel or on the NPC panel (the Npc Dialog Panel option), and its name and its avatar can be placed on the left or on the right.

What the user sees​

  • A panel with the name of the character, its avatar, the text and the answer buttons. The text is typed letter by letter at the speed you set (0 characters per second shows it at once), and the user can skip the typing if you enable it.
  • A panel for the player and a panel for the NPC. On the player panel the name and the avatar can be those of the user, from the platform.
  • Desktop, Mobile and VR variants of the panel exist. On a screen the panel is part of the interface. In VR it appears in front of the user, or at the point you give to the Dialog System as its panel position.
  • A text, a name or an option label can be written out, or be a key of the environment's Localization File: when the key exists, the text is translated, and otherwise the text is shown as you wrote it.

Set up a dialog in a scene​

  1. Add the Dialog Panel Spawner component to an object of the scene. It creates the panel when the scene loads, and holds its settings: the name and the avatar of the player and of the NPC, the typing speed and the skip options.
  2. Add the Talkable component (Add Component > Dialogs > Interaction > Talkable) to the object that talks. Added or reset, it creates a child DialogSystem with a Dialog System and a GraphBehaviour component.
  3. Open the graph from the GraphBehaviour and build the nodes.
  4. In the Dialog field of the Talkable, reference the Dialog Part of the node where the conversation starts.
  5. Start the dialog, from a Visual Scripting graph with the Virtuademy Dialogs: Activate Dialog node, or from a script or a UnityEvent by calling ActivateDialog() on the Talkable. SetDialog changes the starting node, to make a character say something else the next time.

Events and nodes​

The Dialog System raises events when it is ready, when the dialog changes, when a path ends (the last node had no option) and when it is cancelled. Each node raises an event for each option the user chooses, and when its status changes (to do, in progress, completed).

Visual Scripting has the matching nodes under Virtuademy Dialogs: Activate Dialog, Continue Dialog, Cancel Dialog, Set Dialog, the events Dialog System Ready, Dialog Changed, Dialog Path Ended and Dialog Canceled, and the node events On Dialog Node Option 1 to 4, In Progress, Complete, Reset and Status Changed. They have no page of their own in the node list.

What dialogs do not do​

  • There are no conditions: every option you connect is always shown.
  • There are no variables and no score: use the option events, with a script or a graph, to keep a count or to react.
  • There is no voice: a dialog has text only.
  • There is no networking: a dialog runs for the user who started it, and nobody else sees it.
  • Do not loop a dialog back to a node it has already shown (for example A, then B, then A again): the dialog can stop the player.
  • The dialog panel closes and opens again at every step.