DialogueRunner.Add Method

Adds a program, and parses and adds the contents of the program’s string table to the DialogueRunner’s combined string table.

public void Add(YarnProgram scriptToLoad)


This method calls AddStringTable(YarnProgram) to load the string table for the current localisation. It selects the appropriate string table based on the value of textLanguage.


Parameter Description
YarnProgram scriptToLoad The YarnProgram to load.


Defined in Unity/Assets/YarnSpinner/Scripts/DialogueRunner.cs, line 146.