Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Resolved 1.0.0-pre.4 compile error

Discussion in 'Unity Transport' started by hugeandy, Sep 14, 2021.

  1. hugeandy

    hugeandy

    Joined:
    Nov 2, 2016
    Posts:
    124
    Hey all,

    I just updated to 1.0.0-pre.4 which I noticed was available. After updating I get the following compile error in the jobs package. I'm on Unity 2020.3.18f1. The only updated package in the manifest file is the transport package, I can't see that it updated any other ones.

    Code (CSharp):
    1. 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<T>'
    2.  
    Any ideas?

    Cheers,
    Andy
     
  2. hugeandy

    hugeandy

    Joined:
    Nov 2, 2016
    Posts:
    124
    This was fixed by simply updating the jobs package to the latest (0.11.0-preview.6)