QuickSaveRaw
QuickSaveRaw is a static class for reading / writing arbitrary data to / from files
SaveString
The file is overwritten if it exists
A QuickSaveException is raised if the save fails
Saves a string directly to the specified file, data can be encrypted and or compressed by specifying a QuickSaveSettings object
C#QuickSaveRaw.SaveString(path, value);
QuickSaveRaw.SaveString(path, value, settings);
SaveBytes
The file is overwritten if it exists
A QuickSaveException is raised if the save fails
Saves a byte array directly to the specified file
C#QuickSaveRaw.SaveBytes(path, value);
LoadString
A QuickSaveException is raised if the load fails
Loads the content of the specified file into a string, data can be decrypted and or decompressed by specifying a QuickSaveSettings object
C#QuickSaveRaw.LoadString(path); QuickSaveRaw.LoadString(path, settings);
LoadBytes
A QuickSaveException is raised if the load fails
Loads the content of the specified file into a byte array
C#QuickSaveRaw.LoadBytes(path);
LoadResource
Path is relative to the Assets folder
Filename should not include an extension
Loads an asset stored in a resources folder
C#QuickSaveRaw.LoadResource<TextAsset>(path);
Delete
Deletes the specified file if it exists
C#QuickSaveRaw.Delete(path);
Exists
Determines if the specified file exists
C#QuickSaveRaw.Exists(path);
GetAllFiles
Gets the names of all files that have been saved
C#QuickSaveRaw.GetAllFiles();