- Home /
streamingAssets folder for Android
hello, I am making a game both for Android and PC with Json file. the streamingAseets path work only on PC, but not in Android. I used the folowing code: what should i change ?
string filePath = "";
if (Application.platform == RuntimePlatform.Android)
{
filePath = "jar:file://" + Application.dataPath + "!/assets/data.json";
}
else
{
filePath = Application.dataPath + "/StreamingAssets/data.json";
}
Comment
$$anonymous$$ay be you have to switch the platform to android and you have to create both android and pc separately. ..
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Making a bubble level (not a game but work tool) 1 Answer
Retreive Jsonfile and Read It 0 Answers
Inserting JSON and saving new values 1 Answer