10-10-2022, 07:29 AM
(This post was last modified: 10-10-2022, 07:32 AM by josemendez.)
(07-10-2022, 08:43 PM)farzb123 Wrote: I'm working on a AR project in unity that requires fluid simulation and I have recently come across your asset "Obi fluids".
I was able to build the project using Vuforia on my mobile and was able to see the liquid simulation, however as I tried to build it for my magic leap device, the project doesn't get built.
I came across this post (http://obi.virtualmethodstudio.com/forum...hp?tid=868) in your forum and tried out the suggestion posed there, however I got 30+ namesspace errors while trying to build it to my device. I am not sure how to fix this issue.
Hi!
Obi has 2 available physics backends: Burst (default) and Oni (fallback).
The Oni backend is used when the required Burst dependencies aren't installed, but is only compatible with Windows, macOS, iOS and Android as stated in the asset description in the store. This is because it consists of several precompiled libraries, one per platform: checking Unity's checkboxes in the library inspector will just tell Unity to include them in builds for that platform, but won't automagically make them compatible with other platforms, they need to be specifically compiled for those. It's like changing the extension of an .exe file to .bundle: that won't make it compatible with Macs.
Magic Leap is based on Lumin OS, which turns out is not the exact same as Android. So just asking Unity to include the Android libs in the build won't work. Not sure how the original poster in the thread you linked ever got this to work.
If you need compatibility with other platforms, the simplest solution is to install the required Burst dependency packages as explained in the manual and use the Burst backend:
http://obi.virtualmethodstudio.com/manua...setup.html
http://obi.virtualmethodstudio.com/manua...kends.html