Jump to content

How to save application-specific settings to separate .cfg file?


photo

Recommended Posts

engine.config.get* and engine.config.set* are very convenient, useful for storing settings related to my particular Unigine-driven application. Unfortunately, all settings I create are stored in same default unigine.cfg file as stock Unigine settings ("data_path", "engine_threaded", etc...) For multiple reasons, I would like to keep my application-specific settings in a separate file. Is there a way to do this? Or must I read/write to another file using XML or Json functionality?

Link to comment

Hi Adam!

 

You can't write to a different place other that engine config by using engine.config.* functionality. The only way is to write your data directly to a file by using File, Xml or Json class. Also, you can have a look at how we implemented that in our editor in editor_config.h file

Link to comment
×
×
  • Create New...