- Home /
Problems saving to My Pictures in Windows Universal build
Hi,
We would like our app to be able to save screenshots to the user's pictures folder on Windows 10.
Here's the line of code that is having problems:
string systemPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyPictures);
Here's the error message we get in our build (in the Editor, it works without issue):
UnauthorizedAccessException: Failed getting the path of a special folder: Access Denied.
We're using the IL2CPP backend. When we try using .NET 4.6 for the API compatibility level, we start getting errors similar to this one https://issuetracker.unity3d.com/issues/wsa-xmlserializerexception-thrown-when-running-the-il2cpp-build
Does anyone have any suggestions on how to work around this?
Thanks!
Your answer
Follow this Question
Related Questions
Unity .net framework 4.5 1 Answer
UWP (hololens) SOAP Web Service 0 Answers
WACK test failed APPCONTAINER 1 Answer
Using .NET 4.6 features not supported by Unity WSA Build 2 Answers
Compiling for IL2CCP - Net 2.0 Subset makes any difference? 1 Answer