Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Compatibility to Unity 2023.1
#6
(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.
Reply


Messages In This Thread
Compatibility to Unity 2023.1 - by ImpossibleRob - 20-02-2023, 09:33 PM
RE: Compatibility to Unity 2023.1 - by josemendez - 21-02-2023, 08:41 AM
RE: Compatibility to Unity 2023.1 - by josemendez - 28-02-2023, 11:38 AM
RE: Compatibility to Unity 2023.1 - by josemendez - 28-02-2023, 03:12 PM
RE: Compatibility to Unity 2023.1 - by Oliran - 13-07-2023, 06:26 AM
RE: Compatibility to Unity 2023.1 - by josemendez - 13-07-2023, 06:33 AM