macOS camera not working in Game window

Hello everyone,
It’s my first time using the XR plugins, so maybe I just misconfigured something. I am trying to develop an AR application for Android, iOS, macOS and Windows. Unfortunately on my Macbook Pro (macOS 12.6) the screen stays black, when I click on the play button. I would like to test all my animations, but Unity isn’t even asking if it can access my camera.
I am using the sample scene provided by Unity and activated “Mock HMD Loader” for macOS in the XR Plug-in Management settings, because Magic Leap and Oculus aren’t what I’m looking for and OpenXR doesn’t support macOS.
Unity doesn’t seem to recognize the built-in camera of my Macbook. Is the Mac camera unsupported or did I miss something within the configuration?
I couldn’t find any tutorial on how to create an AR-app on macOS, beside some old ones with Vuforia and EasyAR.

I think you have to use an older variant, or a custom AR system with OpenCV, since Mac does not support ARKit

Thank you for your reply. Unfortunately this also doesn’t work on Windows. I am porting an old EasyAR project to the XR plugin and need to check a lot of animations and settings. Building the application every time on an iOS or Android device would be laborious. Is there a workaround I can do?

You can make a script to automate builds, other than that not really sadly

Do you have a tutorial/snippet? This sounds interesting

Nope, seen someone do it online a few weeks back, but that’s lost in history for me.

Incremental ios builds on unity 2021 also will be benefitial probably

AR Foundation 5 introduces XR Simulation, which allows you to test your AR app in the Editor Game view: https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/manual/simulation.html

Note that Unity only supports AR Foundation providers for iOS, Android, and OpenXR. We do not support building apps for Mac or Windows.

1 Like