Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Updating Collections package with Jobs package

Discussion in 'Editor & General Support' started by eusebium, Jul 14, 2021.

  1. eusebium

    eusebium

    Joined:
    Jul 23, 2016
    Posts:
    84
    Hi,
    Updating Collections package from 0.15.0-preview21 to Version 1.0.0-pre.3 breaks compilation with:
    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>'
     
    Last edited: Jul 14, 2021
    PabloValor and atomjke like this.
  2. atomjke

    atomjke

    Joined:
    Sep 26, 2014
    Posts:
    9
    I have same error, switched to Collections 0.17.0-preview.18 to fix it
     
    ProGameDevUser likes this.
  3. eusebium

    eusebium

    Joined:
    Jul 23, 2016
    Posts:
    84
    Fixed in 1.0.0-pre.5
     
  4. Kingfish2020

    Kingfish2020

    Joined:
    Aug 2, 2021
    Posts:
    9
    It happens again in 1.10