How can we help?

Categories
< All Topics

Add proper permissions to your Unity3D application

Unity doesn’t automatically provide permissions for apps to access Hololens restricted features, so you need to add these manually. Please follow these steps:

  1. Once you have built the application in Unity3D, open it in Visual Studio normally
  2. Right click on Package.appxmanifest and open it with XML editor/view code
  3. Add the restricted capabilities in the <Package /> section:
    xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities”
  4. Make sure to add it also to the ignore list part: IgnorableNamespaces=”….. rescap”
  5. 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