Save Parameter in Engine vs User Preset
-
Hello all!
This might be obvious, but I'm still not sure how to do this. Is there a way to save a custom setting / parameter in the engine as a whole instead of in individual user presets? Basically, save something in the same way the settings are saved per device in the GeneralSettings.xml (like DiskMode or ScaleFactor). Not sure if this requires some cpp editing or not.
-
You can save to a json file
-
@d-healey Ah good call. How do you load again on compile? Is it just
Engine.loadFromJSON(String fileName)
with a static file name you set in a variable? -
@Lunacy-Audio You don't need to put the filename in a variable, you can just pass it directly to the function.