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.
396 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,091 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

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.