I am trying to remove www.texture from memory for webgl. Using the code below
GameObject.Destroy(www.texture);
Doesn’t remove it from memory. But calling
Resources.UnloadUnusedAssets();
after we destory it seems to work (according to the profiler), but we get “m_instance != 0” constantly, which can be annoying. But testing it in a webgl build, it actually works without the error.
What do we do to properly remove a www.texture from memory?
Thanks for the help!