Hello, my game uses dynamic loading of scripts from the server. There was a problem in IEnumeration.
I use this code:
function JS():IEnumerator{
www=new WWW("https://sun9-13.userapi.com/c857524/v857524493/17be85/9nJDTRvPlZA.jpg");
while (!www.isDone)
yield null;
GameObject.Find("Cube").GetComponent(MeshRenderer).material.mainTexture=www.texture;
}
JS();
Trending Articles
More Pages to Explore .....