jeo77
New member
Hey, so I've dug around in the forums and on this discord but I can't seem to an answer to this one: I have a huge collection of variables in the form of scriptable objects (think like single floats, single ints, strings etc. all each saved as a Scriptable Object). I want to be able to access these from behavior trees, so I was planning on having an editor script that searches my project for any of these assets, adds a respective global variable for each, and then maps that variable to the appropriate scriptable object at runtime. So far, I can only seem to either add Global Variables by hand (not realistic, as multiple designers are often adding/removing this scriptable object variables to the project), or at runtime - which means they can't be accessed by designers in the editor.
So is there some way to programmatically add global variables & variable mappings while just in editor (not runtime)?
So is there some way to programmatically add global variables & variable mappings while just in editor (not runtime)?