I'm using the following code to get the text from a web page:
private IEnumerator FetchText() {
WWW www = new WWW(URL);
yield return www;
if(www.error == null) {
myText.text = www.text.Length.ToString();
}
...
}
When I run this in Unity, I get 185616
characters long string. But when I run this in android device, I get only 47133
characters. Is it because that web page behaves differently in Windows and Android? If yes, how can I fetch the same content from android as I'd be getting from desktop PC.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…