microsoft / MixedRealityToolkit-Unreal

The Mixed Reality Toolkit for Unreal provides a set of components and features to accelerate Mixed Reality app development with Unreal.
MIT License
136 stars 19 forks source link

HoloLens 2 UE4 Persistent Save #17

Open bvaibhav1 opened 1 year ago

bvaibhav1 commented 1 year ago

Hello,

We are downloading some data in a UE4 Hololens 2 app, and saving it to FPaths::ProjectSavedDir(). However this folder gets deleted on app install and uninstall.

Is there a mechanism/example to save the files to local app data or some other folder to keep the files even after Hololens app is uninstalled.

luis-valverde-ms commented 1 year ago

HoloLens apps, being UWP, have special restrictions about where they can read/write. This is a good guide: https://learn.microsoft.com/en-us/windows/uwp/files/file-access-permissions. Looks like you may be able to write to the user's Downloads folder. There are a few other options there.