- Home /
How to decompile a build?
Hello, I've just got a big problem, i've imported some objects and my player's prefab deleted himself... But, instead of recreate this prefab (lot a time) I want to decompile one of my old build, but I don't know how to do this?
Cordially.
Answer by Jeff-Kesselman · Jun 08, 2014 at 06:00 PM
Unity is not a round-trip tool.
There is no way to "decompile" a build back to a unity project.
Thats what backups are for.
There certainly are ways to decompile Unity projects, just as you can decompile almost anything else. But it's not a simple process where you can just click "decompile" and get back exactly what you had. Use Google if you want to find out more.
Backups "work" by taking regular copies of any works-in-progress as you create them. Then, when you make a mistake, you load one of your old versions to recover from your error. If you haven't already been taking backups or using source control, there's nothing you can do about it now except learn from your mistake....
Sure, you can hex edit anything... but that wasnt what he was asking :)
Simplest form of backup is just to make a zip of your project every time you get something working and store it somewhere.
If you are using Apple you SHOULD be using time machine, and you can recover lost files from there if they arent too old.
Also, online storages are great - just don't rely on them too much. Dropbox once replaced my current project with a two week older project automatically (without any of my interaction with DropBox). So, always keep physical backups, not just online! Time$$anonymous$$achine is a huge lifesaver.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Why is my prefab spawing underneath my player when facing left but not right? 0 Answers
Unity 3D Terrain Tree Rotation Bug 0 Answers
Unity Build BUG 0 Answers
Character models disappear when project is built (SOLVED) 1 Answer