• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ccwiegreff · Jul 30, 2015 at 02:12 PM · data

Is there a way to reverse engineer a built project.

Me and a team of 5 have been working on an app game for about 2 months but out of no where our coder up and disappeared, its been close to like 5 months now and what we can manage on our own is no comparison to what he could do. Is there a way that we could run those files on the project editor and continue work from a build game file and data or are we just screwed

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image maccabbe · Jul 30, 2015 at 02:26 PM 0
Share

You won't be able to recover the source code from a built release version of a project.

avatar image Nischo · Jul 30, 2015 at 02:38 PM 0
Share

You had no source control management? No Backups? No access to the unity project? And if you had access to the unity project, why isn't the source code there?

avatar image ccwiegreff Nischo · Dec 13, 2015 at 09:49 PM 0
Share

we sent him all the objects and art to work into it and he'd send us built versions for consulting and one day just stopped talking to us, thanks for all the comments but we've just moved on.

avatar image wesleywh · Jul 30, 2015 at 07:40 PM 0
Share

The source could should be available unless he stripped everything and took it with him. Otherwise the ONLY way to reverse engineer anything is to look at the machine code and rebuild the code by translating that. This is an extremely high level topic that people will get paid a hole bunch of $ to do. So unless you can get your hands on that original source code.....yes your screwed.

avatar image Klarax · Jul 31, 2015 at 12:15 AM 0
Share

There is a reason why you cant do this, you know... for hacking and reselling a game etc

2 Replies

· Add your reply
  • Sort: 
avatar image
8
Best Answer

Answer by nullgobz · Jul 31, 2015 at 12:28 AM

Well there is one way to acually get the sourcecode but its not pretty. You could decompile the game dll file.

Look in your game folder: [gamename]_Data/Managed/

For these dlls:

Assembly-CSharp.dll -> for c# scripts Assembly-UnityScript -> for js scripts

Open that file/files with a decomilation software like: dotPeek.

If you use dotPeek, select the dll, namespace or "root namespace" right click a class and "decompile source"

Also use source control in the future if you care about your project :) Best of luck!

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Pursche · Aug 26, 2015 at 09:32 AM 1
Share

Yeah, it kinda sucks when a programmer ups and dissapears. :/

avatar image Vickilynn · May 02, 2020 at 08:35 AM 0
Share

I have no idea if you'll see this or not, but I made an account simply so that I could thank you for your help. It is 3:30 A$$anonymous$$ where I live, and I have been trying to recover one of my files since my visual studio glitched and (irreversably) deleted my code. I've been on forums, watching YouTube videos, and searching through dozens of links trying to find a solution. I was not able to recover my most recent file, but I did have an .exe from a build about two weeks ago. I spent the last three hours trying to recover the file in there (a file which houses the vast majority of my code and whose absence broke my game entirely) using ILSpy, but I'm very new to program$$anonymous$$g/Unity (this is actually my first Unity project), so I couldn't understand most of the tutorials /answers on forums that I could find, as they were written for more experienced developers that new the filing system and contents better than me. Everyone told me to open the .exe file, but I repeatedly received errors. I tried everything I could think of and was on the absolute brink of quitting entirely (closing my many open tabs in defeat) when I searched ONE $$anonymous$$ORE TI$$anonymous$$E and found your answer.

So, thank you SO much for your easy-to-understand help. If it weren't for this answer, I would have had to revert back to a version of the file from nearly two months ago (right after I started the project), and I would have lost almost ALL of my progress for my game that is due this week for finals.

avatar image CyberMew · May 25, 2021 at 05:44 AM 0
Share

If this is a webplayer build (from 7 years ago), how can we still do this?

avatar image
1

Answer by Bunny83 · Jul 31, 2015 at 12:40 AM

The script source code uaually can be restored without much problems except it has been manually obfuscated. A Unity build doesn't compile to machine code as we use Mono. All your scripts are compiled to CIL code (common intermediate language). The best decompiler i know is ILSpy. It can view the classes in IL and can also decompile to C# or VB.NET.

Asset files can partially be restored but you never get back to the original files.

It also depends what kind of "build" you have. In standalong builds you can access the assemblies directly. An android apk file is actually just a zip file. So you can open it with most zip tools and extract the dlls. There are even solutions to "unpack" a webplayer build.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Programmer1337life · Aug 18, 2020 at 01:16 PM 0
Share

what if it has been built with IL2CPP for android, is there a way to restore the scripts. I tried decompiling the .dll but it only gives me the files.cs names and the functions names without any code

avatar image CyberMew · May 25, 2021 at 05:43 AM 0
Share

I have a webplayer build from 7 years ago and I lost the source code, how can I unpack it to get back my original codes so I can build it for the new html5?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

30 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Best way to store and use small game data? 1 Answer

List with Item entry's, Put it sorted on a leaderboard 1 Answer

A common method to call any script that is put into a method 0 Answers

[UNET] sending large files over network 0 Answers

Gameobject can not save variable attached to it ? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges