How to Access/set variables via C# code and connect C# methods directly in editor?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
m_umair
Posts: 1
Joined: Wed May 03, 2023 6:44 am

How to Access/set variables via C# code and connect C# methods directly in editor?

Post by m_umair »

Hi,

How can i access or set dialogue system variables in C# code (without Lua binding), e.g. if we want to link those to our game's own database or backend?

Similarly, can we bypass Lua and register our C# methods directly in editor when configuring dialogue system conversations/quests?
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to Access/set variables via C# code and connect C# methods directly in editor?

Post by Tony Li »

Lua is the mechanism that the Dialogue System provides to bind your C# code, so that's what you'll want to use to connect your C# methods and variables. It's pretty easy to do: Registering Functions
Post Reply