- Home /
Unity3D: Sprite not appearing
Im creating a sprite like this:
Sprite.Create(myTexture,new Rect(0,0,myTexture.width,myTexture.height),new Vector2(1,1),100);
But the sprite is not appearing anywhere. What I'm doing wrong?
Comment
Answer by Jeff-Kesselman · May 03, 2014 at 10:05 PM
http://forum.unity3d.com/threads/212269-Sprite-Create-not-working
Short answer is that a Sprite is not a game object. Its just a component. You need to add it to a game object that also has a SpriteRenderer