Page 1 of 1

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

Posted: Wed May 03, 2023 7:06 am
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?

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

Posted: Wed May 03, 2023 8:37 am
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