On a desktop computer (Mac OS or Windows) the location of the files can be obtained with the following code:

path = Application.dataPath + "/StreamingAssets";

On iOS, use:

path = Application.dataPath + "/Raw";

On Android, use:

path = "jar:file://" + Application.dataPath + "!/assets/";

以上

04-15 16:01