Trying to follow this guide: Getting started with NetCode
I’m on Unity 2019.3.15f1
I’m getting these errors:
Looks like the entire Networking namespace is missing and an issue with a call to NativeHashMap.Length not being a thing.
The guide says to install the packages: Entities, Hybrid Renderer, Unity NetCode, and Unity Transport. All packages are up to date.
Anyone now what the issue is?

I believe the root cause is the first 3 errors about the NativeHashMap. That error making the Transport fail to compile and NetCode depends on the transport.
Did more digging. Turns out NativeHashMap
is part of a package named collections
. From the collections change log on the latest update that happened on the 25th:
Removed
- Removed expired APIs for UnsafeHashMap.Length
- Removed expired APIs for NativeHashMap.Length
Entities and Jobs depend on the latest Collections. Going to try and roll back all 3 to see if it fixes my issues
Just getting more errors :\
Manually fixed the Transport package to get it to work. More info here
Now NetCode is calling ArchetypeChunk.GetComponentVersion
instead of ArchetypeChunk.GetChangeVersion
. After fixing that I get the following error:
InvalidOperationException: Group of type Unity.NetCode.ClientSimulationSystemGroup has not been created, either the derived class forgot to call base.OnCreate(), or it has been destroyed
Unity.Entities.ComponentSystemGroup.CheckCreated () (at Library/PackageCache/com.unity.entities@0.11.0-preview.7/Unity.Entities/ComponentSystemGroup.cs:67)
Unity.Entities.ComponentSystemGroup.AddSystemToUpdateList (Unity.Entities.ComponentSystemBase sys) (at Library/PackageCache/com.unity.entities@0.11.0-preview.7/Unity.Entities/ComponentSystemGroup.cs:72)
Unity.NetCode.ClientServerBootstrap.CreateClientWorld (Unity.Entities.World defaultWorld, System.String name) (at Library/PackageCache/com.unity.netcode@0.1.0-preview.6/Runtime/ClientServerWorld/ClientServerBootstrap.cs:86)
Unity.NetCode.ClientServerBootstrap.Initialize (System.String defaultWorldName) (at Library/PackageCache/com.unity.netcode@0.1.0-preview.6/Runtime/ClientServerWorld/ClientServerBootstrap.cs:51)
Unity.Entities.DefaultWorldInitialization.Initialize (System.String defaultWorldName, System.Boolean editorWorld) (at Library/PackageCache/com.unity.entities@0.11.0-preview.7/Unity.Entities.Hybrid/Injection/DefaultWorldInitialization.cs:97)
Unity.Entities.AutomaticWorldBootstrap.Initialize () (at Library/PackageCache/com.unity.entities@0.11.0-preview.7/Unity.Entities.Hybrid/Injection/AutomaticWorldBootstrap.cs:15)