- Oct 15, 2016
- 861
- 1,360
Code Editing:
--------------------------------------------
These projects may require a small amount of programming knowledge, depending on what it is you're trying to achieve.
First thing to note is that Unity is C# based and built on top of the DotNet/Mono infrastructure. It offers little to no protection for the programming code and most variable names are left. Due to this, we can use an intermediate to examine and change the files.
Grab dnSpy from GitHub:
Be aware of what type of game you're editing - most Unity binaries are 32 bit so you'll need to open dnSpy-x86.exe. The target file will be Assembly-CSharp.dll. This can be found in the Game_Data/Managed folder. Do not forget to back this up because you'll make mistakes and you need a clean slate.
Once you've opened Assembly-CSharp.dll in dnSpy, you'll see the interface:
The left side contains the DLLs which can be expanded into namespaces, classes then methods. Right clicking on a method, you can click the "Edit Method" to start changing things. Change something, compile and hit Save Module from the File menu.
--------------------------------------------
These projects may require a small amount of programming knowledge, depending on what it is you're trying to achieve.
First thing to note is that Unity is C# based and built on top of the DotNet/Mono infrastructure. It offers little to no protection for the programming code and most variable names are left. Due to this, we can use an intermediate to examine and change the files.
Grab dnSpy from GitHub:
You must be registered to see the links
Be aware of what type of game you're editing - most Unity binaries are 32 bit so you'll need to open dnSpy-x86.exe. The target file will be Assembly-CSharp.dll. This can be found in the Game_Data/Managed folder. Do not forget to back this up because you'll make mistakes and you need a clean slate.
Once you've opened Assembly-CSharp.dll in dnSpy, you'll see the interface:
The left side contains the DLLs which can be expanded into namespaces, classes then methods. Right clicking on a method, you can click the "Edit Method" to start changing things. Change something, compile and hit Save Module from the File menu.