Unity doesn't automatically provide permissions for apps to access Hololens restricted features, so you need to add these manually. Please follow these steps:
- Once you have built the application in Unity3D, open it in Visual Studio normally
- Right click on Package.appxmanifest and open it with XML editor/view code
- Add the restricted capabilities in the <Package /> section:
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
- Make sure to add it also to the ignore list part:
IgnorableNamespaces="..... rescap"
- Add the correct entry to the <Capabilities /> section for the SensorsExperimental:
<rescap:Capability Name="perceptionSensorsExperimental" />
To read the official documentation, check it out from: https://docs.microsoft.com/en- us/windows/uwp/packaging/app- capability-declarations# restricted-capabilities
Comments
0 comments
Article is closed for comments.