How can i access the Holo lens 2 file explorer through a Unity application

mohan krishna sai 0 Reputation points
2023-10-31T07:15:44.7366667+00:00

Im a unity developer who works on XR currnetly like im trying to create application for Hololens 2 using Unity GameEngine . i can access the file explorer in unity play mode but i can't access it in Hololens 2 im seeking for a support about this thankyou..

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
390 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,086 Reputation points Microsoft Vendor
    2023-10-31T08:15:52.3033333+00:00

    Hello, Welcome to Microsoft Q&A,

    The HoloLens application is also a UWP application. For UWP applications you can try file picker, please refer to Open files and folders with a picker - UWP applications | Microsoft Learn and Save a file with a picker - UWP applications | Microsoft Learn.

    It should be noted that Unity does not support the WinRT API by default, so you need to add preprocessor directives when using these APIs, please refer to Unity - Manual: WinRT API in C# scripts for UWP (unity3d.com).


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments