Skip to content

Commit b0772f4

Browse files
authored
Update README.md
1 parent 911d490 commit b0772f4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
23
# Unity Netcode Patcher
34
**This is an assembly patcher which replicates the IL Post Processing that unity does with it's Netcode For Gameobjects Package, allowing you to create custom NetworkBehaviours in mods as if you were doing it in a Unity project.**
45

@@ -13,8 +14,10 @@
1314
1. Download the latest release from [Releases](https://github.com/EvaisaDev/UnityNetcodeWeaver/releases)
1415
2. Move NetcodePatcher folder from the zip into any location, I will have it in `O:/NetcodePatcher` for this tutorial.
1516
3. Move contents of `GameFolder/GameName_Data/Managed` into `NetcodePatcher/deps`
16-
4. Add the following snippet to your mod, in a place where it will only run once, such as `Awake()`
17-
- **It is very important that it only runs once!**
17+
18+
## Preparing mods for patching
19+
To ensure that the patched NetworkBehaviours are initialized properly, add the following code snippet to your mod, in a place where it will only run once, such as `Awake()`
20+
- **It is very important that it only runs once!**
1821
```cs
1922
var types = Assembly.GetExecutingAssembly().GetTypes();
2023
foreach (var type in types)

0 commit comments

Comments
 (0)