Location Boston, MA
Interests Programming, Photography, Cooking, Game Development, Reading, Guitar, Running, Travel, Never having enough time...
This Site Made with Astro, Cloudinary , and many many hours of writing, styling, editing, breaking things , fixing things, and hoping it all works out.
Education B.S. Computer Science, New Mexico Tech
Contact site at dillonshook dot com
Random Read another random indie blog on the interweb
Subscribe Get the inside scoop and $10 off any print!
Unity Save Game Editor
In game development there's a lot of scratching your own itch and my latest diversion is a great example of that.
More often than I care to count, when I’m working on a new feature for Macrocosm something gets in a weird state and I need to see what’s going on with the save. Once I figure out what happened and attempt a fix, it would be super nice to be able to then edit the save game and put it back to a correct state to test from.
After thinking about it enough I decided to take the time from main game development and make this tool that should speed up future dev time.
Enter the Unity Save Game Editor.
Once you set your save game path & extension and choose which save file you want to work on, the editor will display a tree of all the loaded data you can then dig into and edit!
On each row there are contextual controls for resetting values, and adding or removing items from a collection. While there are a few more things I wish it had, it suits my needs for now and I think it’s in a good state to give it to the world and hopefully have other people help contribute to it to.
This will work if your save game is simply serializing a data structure, something like this:
public void SaveGame(){
BinaryFormatter bf = new BinaryFormatter();
FileStream file = File.Create(savePath);
bf.Serialize(file, gameData);
file.Close();
}
And on that note, go check out the project on GitHub!
Once you have it copied into your project in an editor folder (in my case: Assets/Editor/SaveEditor) you should see the menu item to open it in Unity’s window menu:
Want the inside scoop?
Sign up and be the first to see new posts
No spam, just the inside scoop and $10 off any photo print!