If you're using Dialogue System version 2.2.32 or older, download the updated Visual Scripting Support package from the Dialogue System Extras page.
To access DialogueLua methods such as GetVariable(), edit DialogueLua.cs. Add this line above the class name:
Code: Select all
[Unity.VisualScripting.IncludeInSettings(true)] // <- Add this line.
public static class DialogueLua
Then use a "Dialogue System Visual Scripting Lua > Lua Result As Type" node to convert it to a basic type such as string,
bool, float, or int.