Creating a Save File
Unencrypted Save
SaveFileSetupData saveFileSetupData = new SaveFileSetupData()
{
fileName = "Save File",
saveLocation = SaveLocation.PersistentDataPath,
filePath = "Example/Path", // The path AFTER the persistent data path (can be left empty)
fileType = FileType.Json,
encryptionMethod = EncryptionMethod.None,
addToStorage = true
};
SaveFile saveFile = new SaveFile(saveFileSetupData);Encrypted Save
1. Store the AES Key and IV
Optional Alternative
2. Create Setup Data
3. Create the Save File
Background Save File
Last updated