Question by
greenevo · Feb 21, 2017 at 05:35 PM ·
texturepathstreamingassets
Streaming Assets load Texture File and Set texture
hi, im trying since the hole day to get the texture with the name "Tex1" from the StreamingAssets Folder "Project1" why does unity gives me an malformed error?
iam happy for every tip or suggestion. thank you best regards simon
public Texture2D Textur;
int Projektnummer = 1;
int Texturnummer = 1;
IEnumerator Start()
{
url = System.IO.Path.Combine("file:///"+Application.streamingAssetsPath,"/Project" + Projektnummer + "/Tex" + Texturnummer +".png");
WWW www = new WWW(url);
yield return www;
Textur = www.texture;
Comment
is the path not readable or wrong ... or do i miss some informations?