19-03-2023, 06:39 PM
(This post was last modified: 19-03-2023, 06:40 PM by josemendez.)
SuikaSukiyo Wrote:I use a VPN and the forum banned me from replying.
I manually whitelisted your account in the anti spam filters, you should be able to post again. Let me know if you encounter anymore issues.
Quote:Assets\Obi\Scripts\Common\Backends\Burst\DataStructures\ConstraintBatcher\ConstraintSorter.cs(144,27): 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 'NativeSortExtension.Sort<T, U>(NativeSlice<T>, U)'
Change the declaration of the ConstraintSorter class so that the generic constraint on type T is "unmanaged" instead of "struct", as the error message suggests. Like this:
Quote:public class ConstraintSorter<T> where T : unmanaged, IConstraint
Quote:Assets\Obi\Scripts\Common\Backends\Burst\Solver\BurstSolverImpl.cs(320,37): error CS1503: Argument 1: cannot convert from 'int[]' to 'in Unity.Collections.NativeArray<int>
Use CopyFromNBC from the Unity.Collections.NotBurstCompatible namespace, instead of CopyFrom (since CopyFrom has been removed in the latest Collections package version):
https://docs.unity3d.com/Packages/com.un...sions.html
That should solve the problem, let me know if I can be of further help.
kind regards,