Official device support check for LiDAR in ARFoundation?

Hi all,

I made a really cool game in AR and it is using the ARMeshManager to do stuff. However this ofcourse is only working on the iPhone 12 pro and iPad Pro 2020. I need some kind of fallback mechanism where I implement my game using the ARPlaneManager instead of the meshmanager. Only problem is… how can I detect this during runtime? I tried checking for "myMeshManager == null ", but even if the MeshManager is not supported on the device, it is still being created, it is just not functioning.

I find it really weird that ARFoundation hasn’t provided us with a simple method or variable to at least check if MesManager is supported! I really hope I am overlooking some documentation on this, but I couldn’t find anything.

Thank you!

1 Like

Here is the answer:

To build off of what @KyryloKuzyk said, myMeshManger.subsystem == null when the device does not support meshing.

1 Like

Yes I found it! Thank you both.

Does this always work?