The contents of all 'Resources' folders are merged during compile time. The 'Resources' folder can reside anywhere inside your Assets folder, and you can have multiple folders named Resources. The 'Resources' folder is one of only TWO ways of loading assets at runtime in Unity (The other being AssetBundles (Unity Docs) One of these folders is called 'Resources' If you're planning to rewrite and repackage the code, you should use ILSpy and export the project into a Visual Studio solution.Unity has a few 'specially named' folders that allows for a variety of uses. Unfortunately, in some cases, the C# code inside the dump.cs file is not going to be valid C.įrom invalid names to incorrect class and type declaration, consider this to be a relatively correct representation of the code, but not something you can process further. If you've followed along, you're aware that we've used Il2CppDumper as our primary tool for accessing the compiled code base. This process should be same for iOS IPA packages. Open up dump.cs with Sublime Text or Notepad++ and enjoy! You are now parsing through the actual Unity C# code that powers your game. These DLLs can be analysed by DnSpy and explored further, but that's a story for another time.
It's a plain text string that can be copied easily. Unity version used in the game is located in the first line of the unity_builtin_extra file.
Android apps are ZIP archives disguised as APK files.
Android and iOS games built with Unity ship with enough meta data to restore a significant portion of the original C# code base, including enumerations, class and method names and strings. Unity games are built using C#, an open language developed by Microsoft and widely used in the game industry.