Capabilities
Before we begin writing code, however, there is one thing we need to do first. Since the outcome of a Unity3D project is another UWP app, the same restrictions with regards to using sensors apply. We cannot access any sensor data unless we express our intentions first. Just like we did before, we need to set the capabilities.
In Unity3D, this is done under the Capabilities tab, which can be reached by going through the menus Edit | Project Settings | Player, and then navigating to the bottom of the Inspector window. There you will find the Publisher settings. This is the same screen where we enabled microphone access in earlier chapters. This time, however, I want you to scroll down the list of capabilities and check SpatialPerception ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access