Dont bite my head off, I’ll keep it simple, you don’t even need to tell me how.
Can you Serializable PlayerPrefs like this. “I just want to know if it’s posable”
Disclaimer: In the Example below is being done with XML.
I want to know if it can be done with PlayerPrefs IDK what to tell you.
I know you want everything to be perfect but if i had PlayerPrefs code that did this i wouldn’t be making this post so i don’t know what you want from me.
[System.Serializable]
public class XmlTestData
{
public string testString;
public bool testBool;
public int testInt;
public float testFloat;
}
I wouldn’t recommend to put XML in PlayerPrefs, on Windows it gets written inside the registry. You can write int, float and string. If you write bool as an int, you can store all of your data from this class into PlayerPrefs. https://docs.unity3d.com/ScriptReference/PlayerPrefs.html
I also don’t recommend to store extensive data in there, only small amount config. Like score, keyboard layout, etc.
If you have a lot of data, write it into a file in the Application.persistentDataPath.