I have an image in my Streaming Assets folder that I want to load at run-time and use as a texture. However, when I attempt to do this, I get an error that reads:
You are trying to load data from a www
stream which had the following error
when downloading. Could not resolve
host: C; No data record of requested
Here is the code that is throwing the error. Any help would be greatly appreciated.
Texture2D imageTexture; var path = System.IO.Path.Combine(Application.streamingAssetsPath,"image.png"); Debug.LogError(path); WWW www = new WWW (path); yield return www; imageTexture = www.texture;