I know that WWW it’s going to be deprecated at some point but I use this method because we can do this (extracted from that page):
Can we do this with Unity 2017 beta new UnityEngine.Networking.UnityWebRequestTexture class (that it’s the same as UnityWebRequest but separated some static methods)? It only has:
public static UnityWebRequest GetTexture(string uri); public static UnityWebRequest GetTexture(string uri, bool nonReadable);
And we can’t provide a previously created Texture2D instance.
Why would you need to supply an already created Texture2D instance?
if you have a reference to that instance can’t you just replace that texture with the one from UnityWebRequest.GetTexture?
UnityWebRequest.GetTexture would else override the properties of the already allocated Texture2D instance