I was on the android, you need to be copied to a .mp3 Application.persistentDataPath
.mp3 assets in
I tried using the following code, but fail
How should I do it?
string fileName = "test.mp3";
string sourcePath = Application.persistentDataPath+"/MyMp3/";
string targetPath = Application.persistentDataPath;
string sourceFile = System.IO.Path.Combine(sourcePath, fileName);
string destFile = System.IO.Path.Combine(targetPath, fileName);
System.IO.File.Copy(sourceFile, destFile, true);