Android Path problem
I'm getting an error when i'm trying to test the game after build on my phone (Galaxy S8), nothing happens in the first scene, but it works well in the editor. I am getting this error: 1 04:25:34.422 8622 8638 I Unity : UnauthorizedAccessException: Access to the path "/jar:file:" is denied.
The code breaks in the If sentence, at the line Directory.CreateDirectory(saveLocation) Hope someone can help me out!
static string SaveLocation()
{
string saveLocation = Application.streamingAssetsPath;
if (!Directory.Exists(saveLocation))
{
Directory.CreateDirectory(saveLocation);
}
print("Save location exists");
return saveLocation;
}
Comment
Your answer
Follow this Question
Related Questions
Programmmed Animation (making transform move to vectors with code) 0 Answers
Doing an Update Function only once 1 Answer
changing aboardgame like linear array path to a have intersections where you choose left or right 1 Answer
Understanding the need of serialization 1 Answer
SetDirty won't work on Nested List 1 Answer