Mesh Generation works in editor using ZI but not in a build

Give us as much detail as possible regarding the issue you're experiencing.

In editor I can see the mesh visualization and generation working, but when I make a build and run it on the headset it doesn't work.

I have attached a Logcat dump.
LogcatOutput.txt (564.2 KB)

Unity Editor version: 2022.2.0b4
ML2 OS version: B3E.220721.07-R.026_user
MLSDK version: 0.53.2

Error messages from logs (syntax-highlighting is supported via Markdown):
No errors.

1 Like

Hi @wellplayed,

Can you confirm that you've enabled the relevant permissions before building?

1 Like

I believe I am using the relevant permissions.

image

1 Like

@wellplayed it looks like the Spatial Mapping permission has been denied. The device SHOULD be prompting you to accept the permission when the application is launched for the first time. If you denied access at any time, you'll need to Uninstall/Reinstall the application. There are a couple of ways you can correct this on device.

  • Uninstall/Reinstall: Settings > Apps & Notifications > Select your app or choose to see all apps and find it there > Uninstall. Then you can reinstall the app normally and it should prompt you for the permission again.

  • Alternatively, you can try Settings > Apps & Notifications > Select your app > Permissions > Click on the permissions you want to view and enable them from there.

1 Like

First off @cdorff great profile icon!

Second, that was the issue, I added a permission checker/requester to make sure all of the permissions are granted.

Here is a link to the doc for anyone else who gets stuck.

Thank you for you help!

2 Likes