Hi all
I got a strange issue…
I got 2 functions in gameobject script:
void A(String iTextureName)
{
Debug.Log("A hit");
m_CurrentUploadedTexture = iTextureName;
B();
Debug.Log("A after B call");
}
IEnumerator B()
{
Debug.Log("B");
String url = "http://www.mywebsite.com/test/" + m_CurrentUploadedTexture;
WWW www = new WWW(url);
yield return www;
m_LastTouched.renderer.material.mainTexture = www.texture;
}
A is called using a sendmessage in a web page javascript BUT B is never called…
I can not see “B” log message in Player.log.
I use a Unity 3.1.0f4 on a mac.
Am I doing something stupid or wrong ?
thx for your help guys…