Quantcast
Viewing all articles
Browse latest Browse all 108

WWW.string doesnt return the page html as expected

I'm attempting the building of a stack based html parser.. #pragma strict public var url: String = "http://www.yahoo.com"; var www: WWW; var a=0; function Start() { www = new WWW(url); } function Update(){ if (www.isDone==true&& a==0){ var readout:String=www.text; Debug.Log("www content= "+readout.Concat); a=1; } } However my Debug log just puts out Debug. www content= CompilerGenerated.__DrgCryptoParser_Update$callable0$17_31__ UnityEngine.MonoBehaviour:print(Object) DrgCryptoParser:Update() (at Assets/DrgCryptoParser.js:17) not the page content as I had hoped. How do I get all the HTML text returned?

Viewing all articles
Browse latest Browse all 108

Trending Articles