Hello!
I’ve been beating my head against this one for an hour or so, figured I’d ask here…
After installing com.unity.netcode.gameobjects via the package manager, I’m seeing this error in my project (Unity 2021.2.8.f1):
Library\PackageCache\com.unity.jobs@0.8.0-preview.23\Unity.Jobs\IJobParallelForDefer.cs(77,85): error CS8377: The type ‘U’ must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter ‘T’ in the generic type or method ‘NativeList’
I went and updated several packages in this project at the same time, and had several errors with the new ECS module (0.5), so I manually changed my package manifest to refer to the old Entities package I was using (0.17 I believe.) So I’m not sure if manually editing the package manifest to refer to an older package messed something up or what.
Usually when I see weird stuff like this I delete the Package Cache in the Library folder and things sort themselves. Doesn’t seem to be the case now.
I’ve done a full resync of my project from source control (rename project folder, force sync revision 0, force sync to latest), and installing just the new com.unity.netcode.gameobjects package is now giving me this error.
Thoughts?
Thanks!