How do I extract assets from a pre-compiled Unity game?

I have a game that is already compiled that was made in Unity and I need to extract the assets somehow. Does anyone know how to extract the assets?

That is actually a very inappropriate question similar to "How do I open someone else's bank cell with valuables?" Any software offering such unpacking is illegal and will do no good for you. Start over and welcome to "Now I know I have to make cloud backup time-to-time" club :)

I'm pretty sure that's only illegal if you are trying to extract assets to use in a non-licensed manner. games that are open source or even just free-asset (like tactical weapon pack 2) and have their assets Creative Commons licensed are legally approved to pull assets from, so if you are going about extracting files from a CCBY or similarly licensed game, then you aren't doing something illegally as another user has said. it is illegal to pull assets out of non-publicly-licensed programs, however.

9 Answers

9

You can with Unity Assets Explorer:
http://forum.xentax.com/viewtopic.php?f=10&t=10085

You just saved me. I moved computers and all my assets got lost in the process. I was able to retrieve them from a compiled prototype, using this tool. Thank you.

@psycho-brm Your dowload link from dropbox appears to be temporarily suspended. You may want to add a secondary source.

Think twice before you consider purchasing DevXUnity Unpacker Studio.

I had recently really bad experience with it. In my case it even didn’t work, it crashed around 60%. Customer support and general communication is non existent. Developer had quite quick response for presale questions (Usually same day), but after purchase I didn’t receive any response for weeks when the program just crashed. After I opened the claim at Paypal he again responded and got the screenshots and debug logs but finally I think he just gave up as he was unable to fix the program.

But the most important thing, I did check what did it manage to export within that 60% and I have to say there was nothing more special than uTinyripper can do. With uTinyripper you have to decompile the scripts yourself and the program did apply some C# patches that you will have to do yourself (Anyone trying to reverse engineer Unity will have to know C# anyway) but other than that there was no better result than open source tools can provide. Addition to that you have to be aware that the program requires constant Internet connection and you have to make an exception to your antivirus software to allow it to run. I would not suggest to run this application on your main workstation as in reality you can never be sure that it does not contain malware that could harm your computer or log your keystrokes etc. Also you have to take into consideration that when developers server is down you are not able to use that software. So for example when the developer realises that his software does not support additional value to those open source softwares and stops hosting his license server you will also lose the access to the application.

I had great success using Unity Assets Bundle Extractor.

Here is a quick tutorial on how to use it.

You can’t. Unity specifically builds its games in such a way as to make it extremely difficult to do this.

Why do you need to extract assets from this game? If it’s something you have legitimate access to, can’t you just ask the original creator? If it’s a game you created, but have subsequently lost the project file for, then bad luck. You should have kept better backups.

No, it doesn't do any such thing. It builds games to make them load quickly and support a complex feature set, not to obfuscate the file format. Any complexity is merely optimization. Don't say things just because they sound true, and stop being condescending--it doesn't make you sound smart.

That is actually a very inappropriate question similar to “How do I open someone else’s bank cell with valuables?”
Any software offering such unpacking is illegal and will do no good for you.
Start over and welcome to “Now I know I have to make cloud backup time-to-time” club :slight_smile:

I am getting an error while using the Devxunityunpackerstudio (I am using the demo version)

License for the unpacker studio is not activated.

Can anyone please tell me how to get the free license key for this or is there any other way to do that for free?

I would really like to know how to do this, because I have been working on a game for about 1-2 years and I recently got a computer with a backup on it, but I only have the compiled project, thinking I can just import that into unity, but to my surprise, it did not work. Someone please post an answer to this problem, because I would really like to get this project back.

Comically, the DevXDeveloper is also the guy that sells an asset for anticheat/anti-hacking. (Asset store link: Anti-Cheat tools | Tools | Unity Asset Store )

Description:
Package ‘Anti-Cheat Tools’ is designed to protect games from cheaters

Package includes

  • Encryption of resources (TextAsset, Texure2D, AssetBundle, binary resources)
  • Protection of variables from detection and modification on memory
    (ProtectedInt, ProtectedLong, ProtectedBool, ProtectedFloat, ProtectedString, ProtectedBuffer and others …);
  • Hiding and protecting variables specified in the inspector;
  • Data protection used through PlayerPrefs from viewing and modification;
  • PlayerPrefs editor;

Pretty wild. Dude’s working both angles of the game. Whelp, I know one asset publisher that I WON’T be buying from!

@DevXDeveloper nice app you have there! To bad you use your brain to hack others. I will generate a free licenses system and share it… I hope you don’t mind since you ask a lot of money for it:) and is easy to decompile C#. Karma is a bitch!

@Mod Why do you allow such programs to run on this forum?

Because Kerchoff's principle - you don't make a system more secure through obscurity. Everyone knows it's trivial to decompile .NET applications, so there's no point pretending otherwise. It doesn't stop it being a breach of the EULA.