- Home /
Problem using WWW to load text file.
Greetings! I am trying to download a simple text file from my server utilizing the following code:
void Start() {
StartCoroutine(Check());
}
private IEnumerator Check() {
using(WWW www = new WWW("http://www.lastshipstudios.com/OldDragonCompendium/supporters.txt")) {
Debug.Log("Test 1");
yield return www;
Debug.Log("Test 2");
}
}
But, I never get the "Test 2" in the console.
Can anyone help me?
Thanks!
Comment
Your answer
Follow this Question
Related Questions
WWW file download size 0 Answers
How do I pass a parameter for trigger animations in the animator controller unity 5 file 0 Answers
I want to launch the application by double clicking on the saved original file. 0 Answers
Download image files from server with WWW and store it in local storage 3 Answers
Which version of JDK, SDK and NDK Unity 2019.2.21f1 require? 0 Answers