Easy File Save

TIGERFORGE

(19)
FREE
Publisher TIGERFORGE
File size 66.12kB
Number of files 5
Latest version 1
Latest release date 2020-08-18 07:55:21
First release date 2020-01-30 11:04:12
Supported Unity versions 2018.4.2 or higher
**** EASY FILE PRO ****
If you like "Easy File Save", consider buying the new version and evolution "Easy File PRO". The same simplicity of Easy File Save (or rather, even simpler!), but more powerful and with support for online files.
Get Easy File PRO!
**********************

Easy File Save is a lightweight, easy and practical way to save and load your data in a file. It has been designed to be very easy and fast to use, but complete and powerful as well. It's based on coding, so you're not limited to use graphical interfaces or automated approaches and you have total control of what, when and how your data is saved and loaded. Moreover, you can create Extensions, which extend what this asset can save and load; for example, Unity components and complex custom classes.

HOW IT WORKS
Basically, everything starts with the declaration of an instance of EasyFileSave class. This instance represents a file that can be written and read. The instance contains all the methods and functionalities for working with data and that file. The instantiation also initializes the internal storage. This storage represents the file content. This means that if you want to write a file, you have to fill that storage with data and then, just calling the Save() method, transfer it into a file. Similarly, when you read a file, the whole file content is transferred into the storage, in a well-organized structure easily accessible.

SUPPORTED DATA TYPES
Easy File Save has built-in methods to save and load different kinds of data. What it's not supported at the moment, can be implemented through Extensions. The asset supports:
• in general, everything that is based on object type and can be serialized by BinaryFormatter;
• common data types: string, boolean, integer, float, bytes, etc.;
• common collections: list, dictionary, ecc.;
• common Unity data types: Vector2, Vector3, Vector4, Quaternion, Transform, Color, Color32, Rect;
• custom Class instances and collections of this Class (through a built-in dedicated serializer);
• BoxCollider component (it's offered as Extension).

Easy File Save comes with some methods to manage data and files (check if a file or a value exists, delete the file, etc.).
This package contains an HTML manual with all the information about methods and examples about their use.

WHAT'S NEW IN 1.2
This version implements some new features in consideration of users feedback.

- Encryption and compression
Now Save(), Load() and Append() methods have an optional password parameter. If specified, the file will be encrypted (Rijndael algorithm) and compressed (the file size will be reduced).

- GetArray(), GetList(), GetDictionary() methods
EasyFileSave now comes with 3 specific methods to read arrays, lists and dictionaries (previously, you had to use the generic GetData() method).

- New Get*() methods
The Get*() methods set has been extended with new methods for reading char, datetime and other common data-types.

- Backup
Using BackupSave(), BackupRestore() and BackupDelete() methods you can easily create and mangare a backup copy of your files.

- Extension bug fix
There was a bug in the creation of extensions. It has been corrected, but the declaration of an extension require a new extra parameter.

ON-LINE MANUAL
Easy File Save Manual

Top Publisher Assets