• DepthAI-v2Hardware
  • Unity App Crashes on Build, but Works in Editor. Oak-D Pro Face Detection

Hello!

I created a tennis game in Unity for Windows where the player is controlled using face detection from an OAK-D Pro sensor. The game works great in the editor with no issues or errors in the console. However, when I run the built version of the game, it instantly crashes on start. I feel like it might have something to do with windows not picking up on the sensor in the app?

Looking for any support or ideas on how to fix / what could be causing this. I will attach screenshots of the error message and some of the OAK-D scripts in the Unity Inspector. Any support or suggestions are appreciated.

Thank you!