Package error's after updating unity editor

I tried to update my editor to version 2022.3.8f1 in order to use the new netcode for entities package for my multiplayer game but after updating I received the following errors in the editor:

  • Library\PackageCache\com.unity.transport@1.3.4\Runtime\IPCManager.cs(79,44): error CS1955: Non-invocable member ‘NativeHashMap<ushort, int>.Count’ cannot be used like a method.

  • Library\PackageCache\com.unity.transport@1.3.4\Runtime\IPCManager.cs(88,40): error CS1955: Non-invocable member ‘NativeHashMap<ushort, int>.Count’ cannot be used like a method.

  • Library\PackageCache\com.unity.transport@1.3.4\Runtime\IPCManager.cs(107,47): error CS1955: Non-invocable member ‘NativeHashMap<ushort, int>.Count’ cannot be used like a method.

  • Assembly ‘Library/ScriptAssemblies/Unity.Multiplayer.Tools.NetStats.CodeGen.dll’ will not be loaded due to errors:
    Unable to resolve reference ‘Unity.Multiplayer.Tools.NetStats’. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.

  • Assembly ‘Library/ScriptAssemblies/Unity.Collections.CodeGen.dll’ will not be loaded due to errors:
    Unable to resolve reference ‘Unity.Collections’. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.

  • Assembly ‘Library/ScriptAssemblies/Unity.Entities.CodeGen.dll’ will not be loaded due to errors:
    Unable to resolve reference ‘Unity.Entities’. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.
    Unable to resolve reference ‘Unity.Burst’. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.

I tried reinstalling the mentioned packages but had no success if anyone knows what I could do it would be very appreciated thanks

Tried deleting the library folder so Unity can fully rebuild the cache?

Just tried it still getting the same errors but thank you

What editor version did you upgrade from? 1.3.4 is the most current version of that package. Is it possible that it is incompatible with that Unity version? Package manager would normally get the right version, but there could be an issue there.

Just found another report of the issue: Bug - IPCManager: Non-invocable member ‘NativeHashMap<ushort, int>.Count’ cannot be used like a method. - Unity Forum

1 Like

Thank you so much! I went through the report and found that manually updating unity.transport to version 2.0.2 got rid of all the errors

3 Likes