- Home /
Does anyone know why my sprite isn't showing up?
I'm working on a game and I imported a sprite to unity. I'm trying to add the image to the text attached to a button, and when I add a sprite, it will show up, as long as it isn't the question mark sprite I created. The problem is that's the one I need to use. Does anyone know why this is happening? It's only happening with the one sprite. All others are fine. (I don't think it's a sorting layer problem but I could be wrong.)
Answer by Bradwall · Mar 09, 2021 at 02:17 AM
Ok so after quite a while of searching and messing around with the settings I figured out the problem. (I would take down the question but I'm going to put the answer here in case other people have the same problem.) I was using an image component instead of sprite renderer and I needed to set the image mode from sliced to simple. That's all!
Answer by rune-kristiansen · Aug 16, 2021 at 06:31 PM
After searching for the same problem and not finding a solution, I eventually realized that i was building "Sample scene" and not my actual scene. This can be found in Build settings.
I know it's a stupid mistake, but someone else might have it also :)