- Home /
What will happen if i use an obsolete class like "WWW" in unity?
Hi everyone. i wrote a code to put something in the server using "WWW" class but i got a warning that says: this class is obsolete and use UnityWebRequest instead. i tried to use it but i got an error : HTTP/1.1 404 Not Found i read that this error is happen when server could not find what was requested. unfortunately i do not have access to server so i can't figure out what is exactly causing the error. so what will happen if i use the obsolete WWW class for my app?
Answer by Casiell · Oct 14, 2019 at 09:13 PM
Obsolete classes should mostly still work. Using them is highly discouraged as there should be better features available for this task. Also Unity desn't guarantee that they actually work as they are obsolete = not supported anymore
404 error is a server side error, you can try typing the url into your browser to see if it works there.
Also testing your web app on uri's that you do not own sounds like a really bad practice. You should have a test environment where you can guarantee everything works as expected so you can actually verify if your application does what it's supposed to