![]() What this means is that head tracking data requires a special permission from the user, and you, the developer, must provide a reason to the user as to why they will need to grant this permission. Key with a string value explaining to the user how the app uses this data. The app's ist must contain an NSMotionUsageDescription This app has crashed because it attempted to access privacy-sensitive data On the first build attempt, you will likely get a crash with the following error: For the sake of brevity, app signing is outside the scope of these instructions. If at this point you get a Code Signing Error, take care of the signing steps. Make sure that your iOS device is connected to the computer and unlocked.Name your build folder where the Xcode project will be saved, and click the Save button.Add the example scene HeadphoneMotionExample to the build, and click Build and Run.If iOS is not already selected, do select it and click the Switch Platform button.Make sure that your project is set to build for iOS.Basic knowledge of how to sign and install iOS builds.Apple mobile device running iOS 14 or greater.AirPods Pro running the latest firmware.Unit圓D (tested with version 2019.4.1f1).Here is what you will need in order to build and run the example scene: In order to verify that the plugin works, it's best to test with the provided example scene. Option 2: Donwload this repository as a zip, rename the extracted folder to HeadphoneMotion, and place it anywhere in your Unity project Assets folder. Option 1: Clone this repository into the Assets folder in your Unity project. Please note that Apple's Head Motion API only provides rotational data (3dof), but no positional data. You can use this to get head tracking data from Apple headphones like AirPods Pro into your Unity scenes.Īpple released the new Headphone Motion API in iOS 14, which provides head tracking data from compatible headphones.Ĭurrently (as of September 2020) the only compatible device is AirPods Pro. HeadphoneMotion is a plugin for Unit圓d that exposes Apple's Headphone Motion API ( CMHeadphoneManager) in Unity.
0 Comments
Leave a Reply. |