Data Persistence 2023
-
What's the latest news on this? I see old topics from 7 years ago about creating a panel where I store all my persistent data and that seems super hacky, and I say that as a Kontakt dev. Kontakt offers a simple make_persistent() function for any variable and that variable will be saved into the user project with whatever is loaded into it at the time of saving, to be loaded again on next plugin load.
How's HISE standing with this in 2023?
User-facing controls are not necessarily the only data values I'd want carrying over. E.g. if I have a control that can have multiple modes which are triggered with keyboard callbacks or something like that, I need that flag to carry over.
Thanks!
-
Those early posts of mine were from when I was fresh off the KSP boat. Since then I haven't needed any KSP style variable persistence.
With your multiple modes example just have a hidden knob on the UI that stores the selected mode. Slider packs are also a great option if you have a lot of data to store/restore.