dyuser1 Posted October 24, 2017 Posted October 24, 2017 (edited) Hi. I try to this. engine.config.setFloat("y_ControlPos", 0.004); but.... y_ControlPos value not saving into /data/project/unigine.cfg Do I have something wrong or missing? Thanks~ Edited October 24, 2017 by dyuser1
moroz Posted October 24, 2017 Posted October 24, 2017 Hi! You can try this way: engine.console.run("config_readonly 0"); engine.config.setFloat("y_ControlPos", 0.004); In UnigineScript, changes made for the configuration file are saved automatically on the application shutdown.
Recommended Posts