Obi Official Forum

Full Version: ObiCloth 6.3: compile error with Unity Collections 1.1.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
    { ... }
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.