0
Answered

Call a C# function in Bolt

Geoff001 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 1

To Whom It May Concern:

       Is it possible to code a C# function and then call

   it from the Bolt UI?

   Thank you,

             Geoff

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Answered

Hi Geoff,

Yes, Bolt can import every method from C#. If it is defined in a MonoBehaviour, it will do so automatically. Otherwise, you only have to add it to your custom types:

https://support.ludiq.io/forums/4-bolt-manual/topics/223-custom-types/