Skip to content

kan6868/playerprefs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple PlayerPrefs Editor

Feature:

  • Save PlayerPrefs with multiple slots.
  • Read and edit directly in the Unity Editor via the Scriptable Object Inspector.
  • Data encrypted with AESEncryption and Base62.

How to use?

Save PlayerPrefs from json string
  //Json Format
  string jsonData = @"
  {
    ""name"": ""Steve"",
    ""age"": 30,
    ""avg"": 12321.0002,
    ""some-string"": ""I'm Cat!!"",
    ""new"": ""I'm Animal""
  }";

  PlayerPrefsUtility.Save(string jsonData, string profileName);
Load PlayerPrefs from profile name
  PlayerPrefsUtility.Load(string profileName);
Clear PlayerPrefs
  PlayerPrefsUtility.Clear(); // remove all PlayerPrefs
  PlayerPrefsUtility.Clear(string profileName); // remove PlayerPrefs by profileName

Unity Editor

image

*To read the PlayerPrefs profile you need to create a ScriptableObject User Profile.

Credits

  • Module Playerprefs made by Kan (2022)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages