Unity Game On Android Cannot Find Or Read Xml File
I have a game made in Unity that I'm trying to deploy on Android devices. I'm trying to use XML files to store information on the device, but the problem is that when the game is o
Solution 1:
Application.streamingAssetsPath in Android already contains file:// so you need to omit that in android in order for it to work.
path = Application.streamingAssetsPath + "!/assets/" + _xmlFile.name + ".xml";
It's the same for Application.dataPath you do not need to add file:// or jar:file://
I don't understand what ! is for, in "!/assets/" maybe that ca be a problem too
Post a Comment for "Unity Game On Android Cannot Find Or Read Xml File"