Sprite not showing in spriteRenderer


I have a player object that i want to animate. I put the starting sprite in the spriterenderer but it doesn’t show up in the scene. I tried an image component with the sprite but it doesn’t animate with an image component. Is there something I am missing? I am using Unity Editor 2020.3.26f1

I don’t believe SpriteRenderer is intended to be used on a Canvas. Even if it works, your UI will be drawn on top of the camera in “Screen Space,” while the Sprite will likely be behind the Canvas in “World Space.”

You could use an “Image” Component if you want the sprite displayed on your Canvas. Animating it would likely have to be a custom script that swaps the sprites. But I would recommend that you only use the Canvas for UI elements, while everything else just uses SpriteRenderer off of a Canvas.

I found the answer. The sprite was rendered too small to be seen. In the import settings I changed the Pixels Per Unit from 32 to 2. Then the sprite was a reasonable size.