Hi,
I’ve taken an older project and inserted it into Unity 3.5 (from 3.4), and it appears that many of the commands for checking web content No Longer Work…? I keep getting “‘text’ is not a member of ‘OBJECT’” or “‘error’ is not a member of ‘OBJECT’”, etc…
There are over 200 errors - so here is just one example… of the .TEXT and .ERROR Not Working…
CAN YOU TELL ME WHAT THE NEW VERSIONS OF THESE ARE OR WHAT I SHOULD PUT:
Example using: .TEXT .ERROR
(The earlier part of this script loads a button graphic… then this script load the link the button should visit - hence its waiting to get back the .text from the WWWeb - of the link for the button - so when the user presses the button - it visits the correct web page)
function checkforbuttonlink0() {
linkb0 = "http://mywebsite.com/sendsback-a-buttons-weblink--script.php?buttonnumber="+button+"&id="+for-account;
// Check if it exists
link0_b = WWW(linkb0);
// Wait/Load
yield link0_b;
linkimb0 = (link0_b.text);
yield linkimb0;
// Error check
if (link0_b.error){
TextHints.message = "ERROR (CHECK INTERNET CONNECTION)";
TextHints.textOn = true;
eerr0 = 1;
//Dont Instantiate
}
if (linkimb0 == ""){
eerr0 = 1;
//Dont Instantiate
//nothin
}
if (linkimb0.length > 100){
eerr0 = 1;
//Dont Instantiate
//nothin
}
////print"eerr0 is:"+eerr0);
if (eerr0 == 0) {
//////print"NEW - I found >>"+linkimb+"<< so I loaded a button - eerr is:"+eerr);
if (linkimb0 != "error"){
buttonstore.load0 = linkimb0;
}
}
}
NOTE : Having the same problem with the .length javascript Command - “…is not a member of ‘OBJECT’”