- Home /
Question by
profzeman · Jun 23, 2014 at 10:35 PM ·
webplayerplayerprefs
I am having trouble getting a web build to save out an .upp file from my code
This is my code, which saves the array value as an integer in a custom character creation tool for my game:
function PPSaveChar(){
PlayerPrefs.SetString("name",charName);
print (charName);
PlayerPrefs.SetInt("gender", objselect[0]);
PlayerPrefs.SetInt("head", objselect[1]);
PlayerPrefs.SetInt("feet", objselect[2]);
PlayerPrefs.SetInt("hat", objselect[3]);
PlayerPrefs.SetInt("hair", objselect[4]);
}
but there is no file created when I build it, upload it to my server, and play it! In fact when I try to run this function the player crashes.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613152334im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
PlayerPrefs in web player are not the same 3 Answers
PlayerPrefs Problem crashing with SetBool 2 Answers
How to use PlayerPrefs? 2 Answers
Save level 3 Answers
How to save resources configuration file for unity3d? 0 Answers