- Current Version: 1.2.0: 2025-01-13T15:49:14Z
- First Published: 2024-07-16T16:19:12Z
- Size: 505968
- Supported Unity Versions: 2022.3.29
tools utilities
Add to cart
BinaryFileIO : Real-time Save/Load
No rating !(1 Vote)
$35.88
$35.88
🩵 Wishlist this asset so it can go on sale!
A replacement for BinaryFormatter to read and write the public fields and properties of class objects/scripts using BinaryReader and BinaryWriter.
Features
- Supports most objects and collection types of any size and mix, such as a List<Dictionary<string, Vector3>>[,,,,,].
- Can use public properties to safely save and load references like sprites, materials, addressables, or other component data.
- Read and write real-time asynchronously or with coroutines.
- Update data in existing GameObjects and ScriptableObjects by reading directly into them.
- Files are compactly formatted in binary (1 and 0 bits), making them smaller than text-based formats like JSON.
- Convert objects to a byte array and use with encryption or network transmission.
- Optionally convert an object into a Base64 string.
- Flip the bits of object data using a byte mask to make it less human-readable.
- Can find and read the first occurrence of a single saved field or property.
Device Security
- Uses Type safety to mitigate type confusion attacks.
- Does not read or write fully qualified assembly names to prevent assembly loading attacks.
- Only creates objects using their default constructor to avoid deserialization attacks.
- Explicitly does not read or write known unsafe types to reduce information disclosure and remote code execution attacks.
File Integrity
- Uses a CRC-32 hash to detect if data is corrupt or changed.
- Writes as a temporary file first to avoid corruption while saving.
- Locks resources in a thread-safe way with SemaphoreSlim and ConcurrentDictionary.
Debug Log
- Messages show read and write data while playing inside Unity Editor.
- Helpful warnings assist with a bug-free development.
- Messages and warnings can be disabled and are not compiled with a final build.
Tutorial for saving in Unity Loady Dungeons:
Add to cart