#To and From JSON & ScriptableObject

1 messages · Page 1 of 1 (latest)

nocturne shale
#

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

lime gulch
#

I heard that playerprefs isn't a good option for larger data structures

nocturne shale
lime gulch
#

ou yeah 😄

nocturne shale
#

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
    
lime gulch
#

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?

nocturne shale
#

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