Why would they be? The parameters (whatever those might be) know nothing about your variables. Why even have those variables? You can read/write directly from/to parameters.
Here I don’t understand. Can you explain?
What are those “parameters”? Where and how do you actually apply those things you’ve read from the config file? And where and how do you synchronize those variables you save with the actual state of your program?
Well, in each function responsible for a specific parameter of the game, for example, “music volume”, I (in theory) output the volume value to a variable, and then enter the value of the variable into the settings file.
It is possible to do this somehow… Is it okay?
Why do you need a proxy variable? Get/set the volume directly from/to the audio player (or bus) itself.
I adjusted the volume. But how do I make it possible to change the volume in the game itself so that it remains?
So that the player could change this volume, and it was not necessary to change it every time he started
That’s perhaps for a new topic. The config file itself is working properly, right? You should mark this question solved and open a new question if you have further problems.
It sounds logical.
In fact, yes, the file works in the sense that data is stored in it.
I’ll keep digging, thank you for your help. Have a nice day!
Finally, I’d like to ask for your help. How can I mark that the issue has been resolved? ![]()
There should be “solution” checkbox below every post. Click it for the post you consider to be the best answer to your question.