23-11-2021, 07:47 PM
(This post was last modified: 23-11-2021, 07:48 PM by timconkling.)
I just updated to ObiCloth 6.3, and I'm getting a compile error:
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:
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
{ ... }