string path = Application.persistentDataPath + "/save.es3"; byte[] bytes = File.ReadAllBytes(path); var settings = new ES3Settings(ES3.EncryptionType.AES, "password"); var json = ES3.ByteArrayToES3Type<string>(bytes, settings); File.WriteAllText(path + ".json", json);
void Start()
"playerHealth": 100, "playerPosition": [10.5, 0, 30.2], "inventory": ["sword", "potion"] .es3 Save Editor