28-02-2023, 03:12 PM
(This post was last modified: 28-02-2023, 03:13 PM by josemendez.)
(28-02-2023, 02:51 PM)ImpossibleRob Wrote: This is strange indeed. It might be the Unity API Updater which changed the signatures but I have no comparison to the original package right now. I changed it and the error is gone. Now just two errors left:
Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(72,29): error CS1929: 'UnsafeList<K>' does not contain a definition for 'IndexOf' and the best extension method overload 'MemoryExtensions.IndexOf<K>(ReadOnlySpan<K>, ReadOnlySpan<K>)' requires a receiver of type 'ReadOnlySpan<K>'
Obi\Scripts\Common\Backends\Burst\DataStructures\NativeMultilevelGrid.cs(75,21): error CS1929: 'UnsafeList<K>' does not contain a definition for 'RemoveAtSwapBack' and the best extension method overload 'ListExtensions.RemoveAtSwapBack<K>(List<K>, int)' requires a receiver of type 'List<K>'
How should these be changed?
Note that beta Unity versions are not officially supported by Obi.
According to the documentation, UnsafeList<T> does have IndexOf and RemoveAtSwapBack methods in Collections 1.2.4:
https://docs.unity3d.com/Packages/com.un...___0____1_
https://docs.unity3d.com/Packages/com.un...ist-1.html
Not sure why these errors are popping up, I'd suggest raising a question in the Unity forums regarding the Collections package and UnsafeList<T> support.