SolvedNumSharp Is it possible to use NumSharp in Unity?
โ๏ธAccepted Answer
@TardiCoder If I remember correctly, You have to make sure the NumSharp.dll
, System.Memory.dll
, System.Runtime.CompilerServices.Unsafe.dll
(all the dlls in your build (bin) folder), to be in the same folder as your compiled script.
For MAC (and possibly other os), this is a nice tutorial: https://medium.com/@jonfoust/using-gcp-nuget-packages-with-unity-8dbd29c42cc4
Other Answers:
Hey, I'm actually also having trouble ...
Hi, For Unity, NumSharp had three dependencies when I tried it,
https://www.nuget.org/packages/System.Buffers/
https://www.nuget.org/packages/System.Memory/
https://www.nuget.org/packages/System.Runtime.CompilerServices.Unsafe/
To install, download the package, extract (7zip is nice), then copy the .dll file located in ./lib/netstandard2.0/ into YourUnityProject/Assets/Plugins/
Good luck!
When I import NumSharp in Unity, it throw two errors:
(1) Assembly 'Library/ScriptAssemblies/Assembly-CSharp.dll' will not be loaded due to errors:
Reference has errors 'NumSharp.Core'.
(2) Assembly 'Assets/Packages/NumSharp.0.20.3/lib/netstandard2.0/NumSharp.Core.dll' will not be loaded due to errors:
Unable to resolve reference 'System.Runtime.CompilerServices.Unsafe'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference 'System.Memory'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
So how can I solve this?