LoadImageIntoTexture - iOS 3.1.3

Hello
I have a problem. The code you can see below doesn’t work properly on the iOS 3.1.3. It works very well on the iOS 5.0. My guess is that there must be something wrong with the LoadImageIntoTexture, because if the url is “http://…” it’s not working either. Any suggestions? I am using GUI.DrawTexture() to display the texture.

EDIT: It is also not working if I run the iPhone version on the iPad with iOS 4.x. If I run the iPad version on the same iPad then it is working :eyes:.

        if (!handsTexture)
	{		
		var url : String = "file://" + Application.dataPath + "/StreamingAssets/Hands.png";
	
		if (Application.platform == RuntimePlatform.IPhonePlayer)
		{
			url = url.Replace("StreamingAssets", "Raw");
		}	
		
		var www = new WWW(url);
		
		yield www;

		handsTexture = new Texture2D(512, 512, TextureFormat.ARGB32, false);	
		
		www.LoadImageIntoTexture(handsTexture);
		
	}

OK. Nevermind :slight_smile: Turns out that the problem is somewhere else. LoadImageIntoTexture is working just fine. You can close this thread.