Anyway I am new in Android. I followed the sample tutorial the Vuforia AR with Unity package extension, and everything works fine.
I have a case to put my resource file (*.dat and *.xml) in server instead of embed them in *.apk deployment.
I try to modify the generated source code (DataSetLoadBehaviour) :
private const string DATA_SET_PATH = "Assets/StreamingAssets/QCAR/";
private const string ResourceUrl = "http://myserver";
IEnumerator DownloadAndSave(string filename)
string remoteFile = ResourceUrl + "/" + filename;
string localFile = DATA_SET_PATH + filename;
Debug.Log("remoteFile: " + remoteFile);
Debug.Log("localFile: " + localFile);
WWW wwwdat = new WWW(remoteFile);
yield return wwwdat;
My question are :
- Is it possible to do that ? Or am I missing other thing to get this work ?
- when apk deployed to Android, where can I get the log/debug output file of Debug.Log (......);
Thanks in advance.