Question by
niki9000 · Oct 23, 2015 at 06:06 PM ·
errorimportproblem during runtimepicture
Error when importing Image per script
Hello! I try to import a picture into my game by using this code:
IEnumerator LoadTileset(){
WWW www = new WWW ("C:/Users/Public/Documents/Unity Projects/Your RPG/Assets/Tilesets/Terrain.png");
yield return www;
if (www.error == null) {
source = www.texture;
} else {
print ("www Error : " + www.error);
}
}
the file I want to import does exist (if I paste the link Into the Windows explorer, it is opening the picture). The File is from a folder created by script at the application folder but when i Start the Coroutine i get this error:
Does someone of you know how to fix this error? Thank you for your help! ^^
error.png
(9.5 kB)
Comment
Your answer
Follow this Question
Related Questions
my Unity editor 5.6.0 (32 bit) can't be opened 0 Answers
Scale relation between blender and Unity 1 Answer
Build failed after import IAP 0 Answers