Skip to content

Instantly share code, notes, and snippets.

@capal
capal / FileManager.cs
Created June 29, 2016 06:44 — forked from radiatoryang/FileManager.cs
a bare bones data loading / saving (for game levels, savegames, etc.) example using the built-in binary serialization in Unity... I'd suggest hooking it up to the file browser OnGUI thing here: http://forum.unity3d.com/attachment.php?attachmentid=87628&d=1392756207 (from http://forum.unity3d.com/threads/84601-File-Browser/page2)
using System;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Reflection;
using System.Text;
using System.IO;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;