- Home /
How do I create variables through the editor to use at runtime?
I want to create an editor script that allows me to click an "add" button to add a variable of a specified type. This variable can then be use in game by other scripts.
This is similar to how you can create global variables in PlayMaker. I'd like to know how that is done.
My current idea is to add new variables to a Dictionary, but I'm not sure if this is the correct way to go about it. Any input on this would be much appreciated.
Thank you
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613144152im_/https://answers.unity.com/themes/thub/images/avi.jpg)