https://github.com/capsize-games/unitybinaryfilesaver
Simple but useful file saving for Unity3D in C#
https://github.com/capsize-games/unitybinaryfilesaver
Last synced: over 1 year ago
JSON representation
Simple but useful file saving for Unity3D in C#
- Host: GitHub
- URL: https://github.com/capsize-games/unitybinaryfilesaver
- Owner: Capsize-Games
- License: gpl-3.0
- Created: 2018-06-21T14:45:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-04T02:56:03.000Z (about 4 years ago)
- Last Synced: 2025-02-13T13:24:44.849Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 379 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Binary File Saver

Very basic binary saving / loading functionality for Unity.
## How to use
Save data by creating a class which implements the blank `ISaveContainer` interface.
Store any serializable classes or properties in your new ISaveContainer class.
- `Assets/Examples/Scripts/GameSaveContainer.cs` example `ISaveContainer` implementation.
- `Assets/Examples/Scripts/Example.cs` saving / loading example.
### Serialization issues
If you see the following error
`SerializationException: Type is not marked as Serializable`
this means you are attempting to serialize an object which is not serializable.
You would see this message when trying to save a GameObject for example. An easy
workaround is to mark this as a non-serialized object:
[NonSerialized]
public GameObject foobar;
See `Assets/Examples/Scripts/GameSaveContainer.cs` for an example