On Android is it possible to copy a File from Resources folder to persistent Data ?
I’ve tried
WWW wwwGetBundle = new WWW(Application.StreamingAssetPath + "/Resources/assetBundle.unity3d") ;
while(!wwwGetBundle.isDone)
{
System.Threading.Thread.Sleep(500);
}
string bundlePath = Application.persistentDataPath + "/assetBundle.unity3d";
System.IO.FileStream bundleFileStream = new System.IO.FileStream(bundlePath, System.IO.FileMode.Create);
bundleFileStream.Write(wwwGetBundle.bytes, 0, wwwGetBundle.bytes.Length);
bundleFileStream.Close();
I think this should work.
The problem is that Resource doesn’t seem to contain my file assetBundle.unity3d which is strange as the resources folder contains it before build.