#To and From JSON & ScriptableObject
1 messages · Page 1 of 1 (latest)
Hey
ok so i am remaking playerprefs
but with json data and such
but i also made the encryption with some fancy shit i do NOT understand
so if i remove that you should have a working system
I heard that playerprefs isn't a good option for larger data structures
thats why i am remaking it
ou yeah 😄
these are the funtions:
-
BinaryPrefs.SetKey("stringKey", "Yakanashe is cool"); -
BinaryPrefs.SetKey("intKey", 69); -
BinaryPrefs.SetKey("floatKey", 69.420f); -
BinaryPrefs.GetKey("stringKey"); //will hopefully return "Yakanashe is cool" -
BinaryPrefs.DeleteKey("myKey"); -
BinaryPrefs.HasKey("myKey"); // checks if there is a key with that name
I have a lot of scriptable objects (inventory items) and gameobjects that I need to save. Could I deserialize it into the string and save this way?
And what are the pros of using this improved playerprefs over saving into json file?
this is what i got
maybe this couls also help
i can't help any further though... so yeah. Do have a nice day!
To and From JSON & ScriptableObject