Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  ObiCloth 6.3: compile error with Unity Collections 1.1.0
#1
I just updated to ObiCloth 6.3, and I'm getting a compile error:

Code:
Assets/ThirdParty/Obi/Scripts/Common/Backends/Burst/BurstMath.cs(681,74):
error CS8377: The type 'T' 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>'

I'm using version 1.1.0 of Unity's Collections package (which was just released yesterday, so I assume the type signature probably changed).

Changing the type constraint of RemoveRangeBurst<T> to "unmanaged" (from "struct") fixes the compile error:

Code:
public static unsafe void RemoveRangeBurst<T>(this NativeList<T> list, int index, int count)
    where T : unmanaged
    { ... }
Reply
#2
Hi Tim,

Thanks a lot for reporting this one, the 1.1.0 update caught me totally off-guard.

I've published the fix to the store.
Reply