Guest User

Untitled

a guest
Dec 14th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. Sprite sprite = (Sprite)Instantiate(bundle.LoadAsset("1.png"));
  2.  
  3. Texture2D tex = ((Texture2D)Instantiate(bundle.LoadAsset("1.png")));
  4. Sprite sprite = Sprite.Create(tex,new Rect(0,0,tex.width,tex.height));
Add Comment
Please, Sign In to add comment