Use Dialogue in Scene

Set Up Dialogue in Scene

To set up Dialogue for a scene, you need to go through a few steps:

1

Setup UI

You need to prepare the Dialogue UI as described in this part of the documentation ...

2

Interaction Object

To use the dialogue, you must have a prepared object in the scene that can trigger the dialogue. For the purposes of the demo and documentation, I will describe an example using TriggerArea.cs, but it could be a different script allowing the use of Unity Events, for example:

  • InteractionScript.cs in Hellish Battle - 2.5D Retro FPS

  • DemoInteraction.cs or TriggerArea.cs in Meet and Talk

3

Start Dialogue

Selected option starts Dialogue from random Start Node

Quick Start Dialogue
DialogueManager.StartDialogue(DialogueContainer SO);

Pro Version

Quick Specific Start
DialogueManager.SetupDialogue(DialogueContainerSO DialogueSO, string StartID);

Using this function in Free Version will Start Dialogue from random Start Node

Change Dialogue UI In-Game

With a simple function you can change the UI used for dialogues, it can be called in UnityEvent or in Script

DialogueManager.SetupUI(DialogueUIManager);

Change Dialogue Language

LocalizationManager.Instance.selectedLang = SystemLanguage.Polish;

Last updated