Jump to content

[SOLVED] engine.config.setFloat() not woking?


photo

Recommended Posts

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 by dyuser1
Link to comment

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
  • silent changed the title to [SOLVED] engine.config.setFloat() not woking?
×
×
  • Create New...