Commit 110bc18
committed
chore: reference the Netcode for Entities assemblies by GUID
Three asmdefs named "Unity.NetCode" and "Unity.NetCode.Editor" as strings. Unity silently drops an
asmdef reference it cannot resolve, so renaming either assembly would make every UNIFIED_NETCODE code
path fail to compile with nothing pointing at the cause. A GUID reference resolves to whichever
asmdef asset carries that GUID regardless of the name inside it, which is how NGO's own editor
assembly rename stayed transparent to projects referencing it.
The GUIDs are read from the installed package's .asmdef.meta files, not derived:
Unity.NetCode 953adc2a6b8b4e3c8df5b728bcd546e9
Unity.NetCode.Editor eb8cf780bf058694ebf7ec5cf5b8cfa3
Unity.Entities is left by name. It is not the assembly at risk of a rename, and converting it would
add surface that cannot be checked here for no benefit.
Not verified locally: confirming a GUID reference resolves needs an editor with both packages
installed. Worth an import in a project that has Netcode for Entities before this is relied on - if a
GUID is wrong the reference drops silently, which is the failure this is meant to prevent.1 parent dd472a6 commit 110bc18
3 files changed
Lines changed: 4 additions & 4 deletions
File tree
- com.unity.netcode.gameobjects
- Editor
- Runtime
- Tests/Runtime
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments