Using unity scriptable objects as variables with (de)serialization
Interactive demonstration on how to use scriptable objects as variables.
In this demo there's 4 variables. Run the game, edit their runtime values in inspector and press Save. Check that the values were correctly (de)serialized by running the game again and pressing Load.
Checkout this blogpost for more information https://fishtrone.wordpress.com/2018/09/16/saving-scriptable-object-variables/