- Home /
 
               Question by 
               captain00000000 · Oct 05, 2012 at 12:15 AM · 
                www  
              
 
              Why WWW.text == null ?
 //Why t == null ?
 
 import System.IO;
 
 var t : String;
 
 function Start(){
 
 Get( t );
 
 Debug.Log( t ); 
 }
 
 function Get ( txt : String ) {
 
 var url : String = "http://www.redsky.org.cn/00test/works/001.txt" ;
 
 var www:WWW = new WWW(url);
 
 yield www;
 
 txt = www.text;
 
 Debug.Log( txt );
 
 }
               Comment
              
 
               
              Answer by hvilela · Oct 05, 2012 at 02:49 AM
Cause you're not setting t, your setting txt:
 // Replace this:
 txt = www.text;
 
 // For this:
 t = www.text;
Your answer
 
 
             Follow this Question
Related Questions
Unity 4.0.0f7 GetThreadContext failed 2 Answers
How to open the file in other pc files with mac PC? 0 Answers
CrossDomain AllowAccessFrom * do not work 1 Answer
Write and read data to php with AddBinaryData 0 Answers
Pause a download 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                