Load images from resource folder instead a URL
I have the following code that loads images from URL, but I want to load the images from a Resource Folder, so I can move the app to another domain and it keeps working, and to allow me update some images without the needing of compiling and changing the whole app each time.
This is my actual code:
var url = "url";
function Start () { // Start a download of the given URL var www : WWW = new WWW (url);
// Wait for download to complete yield www;
// assign texture GetComponent.().material.mainTexture = www.texture; }
I have tryed to enter "file//nameofmyimage" as the url value but it doesn't work.
Thanks in advance for any help!
Try looking at this link.
In the link, they use Texture2D, but it is the same with Texture.
Your answer
Follow this Question
Related Questions
Loading Images on iOS vs Standalone Build 0 Answers
Unet load testing 0 Answers
Two Player character select screen help please 0 Answers