I’m not sure if this is possible or not, and maybe there’s another way to do this…
I’m saving a bunch of settings to a PlayerPrefs file which I then read on game launch to load default values for different classes.
The problem is that the saved PlayerPrefs file doesn’t exist on the iPhone when the game is launched for the first time, so since it can’t find those saved values, it uses whatever default values are assigned in the “PlayerPrefs.GetFloat(“MyValue”, defaultValue)” call.
Is there any way to “transfer” the PlayerPrefs file from the computer to the iPhone when making builds? Am i gonna have to write those values to a text file which I would then access when the game runs?
Thanks for your time!
Stephane
why do u want to transfer the plist file.what are default values u are setting set them in the "awake" or the "start" function. so when u load game they will assigs the values.
– mohanrao164The reason is I created a EditorGUI tool which lets me change all the default values for my upgrade system, and saves them as the starting values for the class. I wanted to use a GUITool so that I wouldn't have to go inside the class to change them or have the class attached to a GameObject to change them in the editor.
– ronronmx