Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sprite sprite = (Sprite)Instantiate(bundle.LoadAsset("1.png"));
- Texture2D tex = ((Texture2D)Instantiate(bundle.LoadAsset("1.png")));
- Sprite sprite = Sprite.Create(tex,new Rect(0,0,tex.width,tex.height));
Add Comment
Please, Sign In to add comment