- Home /
Cannot download obj file from server and save to Assets correctly (runtime)
WWW www = new WWW(url + i + "/model.obj");
while (!www.isDone)
yield return www;
if (www.isDone)
Debug.Log("Done");
Directory.CreateDirectory("Assets/Lamps/" + i);
File.WriteAllBytes(@"Assets/Lamps/" + i + "/model.obj", www.bytes);
The actual obj file size is 102KB but the downloaded file size is 223 bytes and I cannot open it with PS (error message "Could not complete your request because the file could not be parsed.")
Comment
Your answer
Follow this Question
Related Questions
Enable/Disable a Static object 1 Answer
Load data from file, if scene changed, fails to load location 0 Answers
How to download an image and stock it on the device in C# ? 0 Answers
WWW file download size 0 Answers
Problem using WWW to load text file. 0 Answers