[Please Help] - Recovery source code by using a WebGL building

Hello everyone,

I made a bad source control. So I lost all source codes
Does anyone face it before? Can anyone have any solutions to get the source code back from the build?

I built a game by using WebGL

Thanks

Did you also lose the local copy of the code? Where was/is it located on your local disk? What are you using for source control, and how did you lose it?

Your C# scripts do not exist in the WebGL build. They are compiled to IL, then C++, then to the JS that the browser can execute. Getting from the browser JS back to your C# would be a non-trivial task if even possible, and there isn’t anything built in to Unity that will do it.

I’d put your efforts into recovering your original project folder, your back ups, or getting into your version control.

So the code should be in Git. Have you checked?

1 Like

Unfortunately without a back up, you are out of luck. You said “all GIT repositories”, then said “has nothing”. Please provide a screenshot of the Git page. If you are able to navigate through the existing repositories, it may be placed at a deeper location. Look for an /Assets folder for example.

What is the Github URL location for the files? Could you add me as a user? (Private message me) You may not looking at the entire repository. And it’s not entirely empty, it should have your README!

1 Like