How read json from StreamingAssets for android app?
For iOS I read with this code,
public void ReadJson(){
string path = "/Raw/elements.json";
#if UNITY_EDITOR
path = "/StreamingAssets/elements.json";
#endif
string json = File.ReadAllText(Application.dataPath + path);
itemsContent = JsonUtility.FromJson<Main> (json);
bundleForPing = itemsContent.bundleID;
}
but how read for android ... please help