dyuser1 Posted October 24, 2017 Share 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 Link to comment
moroz Posted October 24, 2017 Share 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. Link to comment
dyuser1 Posted October 24, 2017 Author Share Posted October 24, 2017 Perfect! thanks! Link to comment
Recommended Posts