HoloLens 2 Repository Question

Jeonghoon 1 Reputation point
2021-12-01T09:00:28.893+00:00

Hello,

I am using HoloLens 2 with Unity.

Is there a way to read/write a file (txt) stored in internal storage in Unity?

Is there a way to access the local storage where the Unity program is installed via USB?

Thanks.

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.
400 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hernando Ren 2,171 Reputation points
    2021-12-02T07:46:07.13+00:00

    Hello, Welcome to Microsoft Q&A,

    "Is there a way to read/write a file (txt) stored in internal storage in Unity?"

    We can use Unity API Application.persistentDataPath to store data or using the UWP API Windows.Storage to manage files.

    "Is there a way to access the local storage where the Unity program is installed via USB?"

    If the "Unity program" means the MR app built from Unity, there is not any support to deploy to an external USB drive and they most go to the device main storage when deploying to the actual device.

    ----
    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

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.