I want to upload my assetbundles to an external server after a build is done, and to do that I need to get an assetbundle that UnityCloud created for me, but I get a WWW error when trying to load the file. The method is being called as a Post-Export method in UnityCloud
I’ve confirmed that the files are actually being created
The URI that I specify is
file:///BUILD_PATH/xxxxxxxxxxxxxxxxxx.game_project_name.android-development-branch/unity/Assets/StreamingAssets/Android/Android
var abPath = <the URI specified above>
var abDownload = WWW.LoadFromCacheOrDownload( abPath, 0 );
while( !abDownload.isDone )
;
if(abDownload.error != string.Empty ) {
Debug.LogWarning( abDownload.error );
}
The WWW error I receive is Unknown Error
Is the path I am working with wrong, is there a different way to load the file? I am using Unity 2017.1.1f1