How to integrate Bolt Visual Scripting and C#?

While Unity Visual Scripting (formerly Bolt) is great for teaching newbies about Unity, sometimes for the sake of speed and power, you need to write supporting modules in C#. However I don’t see any documentation on how to integrate the two.

I’ve figured out that I can access the variables using the class Unity.VisualScripting.Variables. However, I would really like to connect to the Custom Event system, to trigger C# code on a particular event. Anyone know any way to do this?

You should just be able to run public functions right from Bolt. I made a function in a script and after running Tools > Bolt > update Unit Options, the script appears just like any other object type. Worth noting that the script had to be in the scene (by default on the object running the flow as it defaults to “self”)
alt text
alt text