After running the project, I would like to export the saved records to a place where I can access them.

cy lai 20 Reputation points
2024-02-18T09:33:23.36+00:00

I tried to create an experimental environment with unity that would run on Hololens2. I built a sln file and was able to deploy the project to Hololens2 via visual studio. When I run the project on my computer, after it has been running for a while, when I press "enter", a log file is stored somewhere on the computer and I can access it. But I don't know how to accomplish this behavior in Hololens2. I've learned from using HoloLens2ForCV that there are ways I can store the CSV file exported from the project on my hard drive and access it with my computer through this path on the device portal: System->FileExplorer->LocalAppData->StreamRecorder->LocalState Can you tell me what I can do to make my project achieve the same goal? To summarize my question: I want my built project to be like the one provided in HoloLens2ForCV, in that it allows me to store the files in a place that I can access them from my computer, can you show me exactly how to do that?

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

1 answer

Sort by: Most helpful
  1. Jay Zuo - MSFT 161 Reputation points Microsoft Employee
    2024-02-26T02:07:31.5366667+00:00

    As applications that are running on HoloLens are UWP apps. You can look at the following docs for examples on using the StorageFile APIs to save the content that you record:

    If you have any code snippets on how specifically you are trying to write this, that would be helpful as well.

    0 comments No comments