Obi Official Forum
Unity 2021.2.14f1 .. should work? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: Unity 2021.2.14f1 .. should work? (/thread-3363.html)



Unity 2021.2.14f1 .. should work? - kreso - 17-03-2022

Loading Obi Softbody into a new project warns of obsolete API.
A lot of console errors.
Running examples is possible (no breaking code) but none of the sample scenes work for me.

Getting a lot of errors of this when I run a sample scene:
Code:
DllNotFoundException: libOni assembly:<unknown assembly> type:<unknown type> member:(null)
Obi.OniColliderWorld.SetColliders (Obi.ObiNativeColliderShapeList shapes, Obi.ObiNativeAabbList bounds, Obi.ObiNativeAffineTransformList transforms, System.Int32 count) (at Assets/Obi/Scripts/Common/Backends/Oni/OniColliderWorld.cs:40)
Obi.ObiColliderWorld.UpdateWorld (System.Single deltaTime) (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:388)
Obi.ObiUpdater.BeginStep (System.Single stepDeltaTime) (at Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs:56)
Obi.ObiFixedUpdater.FixedUpdate () (at Assets/Obi/Scripts/Common/Updaters/ObiFixedUpdater.cs:46)

I am on a M1 Mac if that matters.

Is Obi softbody expected to run in Unity 2021.2?

Kind regards


RE: Unity 2021.2.14f1 .. should work? - josemendez - 17-03-2022

Hi there!

Follow the setup steps in the manual:
http://obi.virtualmethodstudio.com/manual/6.3/setup.html

Specifically, make sure to install the Burst backend dependencies. The fallback backend (Oni) will be used if these aren't installed, which is not compatible with the M1 architecture. Unity will try to look for a native library compiled with M1 support, and fail to find one, hence the DllNotFound exception.

Also see similar threads:
http://obi.virtualmethodstudio.com/forum/thread-3289.html?highlight=M1
http://obi.virtualmethodstudio.com/forum/thread-3213.html?highlight=M1