Quantcast
Channel: Questions in topic: "sprite editor"
Viewing all articles
Browse latest Browse all 190

can unity make sprite animations by scripting.

$
0
0
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

Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>