How to access holoLens StreamingAssets folder

紫薇帝星 安徽 21 Reputation points
2022-01-18T01:26:44.287+00:00

I'm trying to edit and save an xml in StreamingAssets from runtime, however, I get the following exception: Unauthorized Access Exception ... access to the path is denied.

HoloLens | Development
{count} votes

Accepted answer
  1. Hernando Ren 2,171 Reputation points
    2022-01-18T05:10:17.54+00:00

    Hello, Welcome to Microsoft Q&A,

    The Unity StreamingAssets folder is read-only and used to store Assets. For specific instructions, please see the Unity official doc: Application.StreamingAssetsPath.

    Therefore, we can save the file in the Application.persistentDataPath and note that source files have read and write permissions.

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

0 additional answers

Sort by: Most helpful

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.