UnityWebRequest vs. WWW

I’m in the middle of updating the code in Unity in Action and just noticed something I’m confused about, and was hoping someone could clear it up. Official response from Unity would be great, but failing that maybe someone could link a blog post or something that discusses this issue…

I had been using WWW in some code, and replaced that with UnityWebRequest since I had read that WWW was being deprecated. Well, I just noticed that the manual no longer says that; compare the first sentence of the documentation from 5.4 to the latest documentation:

This seems to suggest Unity’s developers have changed their minds about deprecating WWW, so now I’m confused. First off, have they changed their minds about this? And if so, is it still a good idea for me to switch to UnityWebRequest? I can’t imagine the developers want to maintain two APIs that do essentially the same thing, in which case they might have decided UnityWebRequest was a failed attempt and it’s the method that’s going away.

1 Like

My understanding is that the WWW feature is being “removed”. Well, will be left in the code for a while, but isn’t something we’d ever suggest should be used. UnityWebRequest is the future. The same is used for things like Animation which is replaced by Animator. Documented as Legacy.

2 Likes

If you’re considering WWW as a legacy component, you should go through the docs where other things use WWW as an example, and use UnityWebRequest instead.

For example, the page for Asset Bundles explains them like this:
“AssetBundles let you stream additional assets via the WWW class and instantiate them at runtime”

3 Likes

@Baste : I have checked newest doc, now using UnityWebRequest instead WWW

AssetBundles let you stream additional assets via the UnityWebRequest class and instantiate them at runtime. AssetBundles are created via BuildPipeline.BuildAssetBundle.

1 Like

Hi, sorry for butting in, but I recently updated to the newest version of Unity and the asset I’m using from the asset store called Vide Dialogues is throwing a warning about switching from www to unity web request anyone know how to go about doing this or if it is necessary? thanks.

Please contact the publisher of such asset: https://videdialogues.wordpress.com/contact/