19-03-2023, 06:17 PM
(19-03-2023, 05:06 PM)lacasrac Wrote: unity 2021:
public void SetSimplices(int[] simplices, SimplexCounts counts)
{
this.simplices.CopyFrom(simplices);
how to convert this line to 2022?
Assets\Obi\Scripts\Common\Backends\Burst\Solver\BurstSolverImpl.cs(314,37): error CS1503: Argument 1: cannot convert from 'int[]' to 'in Unity.Collections.NativeArray<int>'
Hi!
You can use CopyFromNBC from the Unity.Collections.NotBurstCompatible namespace, since CopyFrom has been removed in the latest Collections package version:
https://docs.unity3d.com/Packages/com.un...sions.html
kind regards,