im loading an sprite sheet with an url.
WWW www = new WWW(url);
yield return www;
output= Sprite.Create(www.texture,rec,new Vector2(0,0),1);
gameObject.GetComponent().sprite= output;
the problem is to crop the image in pieces like using in the unity editor the "sprite mode>multiple>grid".
is there a posibility to do that by code?
![alt text][1]
[1]: /storage/temp/56255-question.png
↧