I’m trying to set an app variable from a monobehavior and I haven’t been able to find any useful documentation of how to do it. I’m in 2021.1 and I found one bit of documentation for unity 1.6.1.
It says there is a Class called SetApplicationVariable but no examples of how to use it.
https://docs.unity3d.com/Packages/com.unity.visualscripting@1.5/api/Unity.VisualScripting.SetApplicationVariable.html
I just need a method to set an app variable that’s defined in a visual scripting graph.
Any help would be appreciated.
Thank you.
Variables API is documented here:
https://docs.unity3d.com/Packages/com.unity.visualscripting@1.6/manual/vs-variables-reference.html#variables-api
Note that the namespaces are outdated in the docs. Both Ludiq and Bolt namespaces are migrated under Unity.VisualScripting. Everything else is correct, however.
Thx for pointing, we will update the documentation.