I’m making a 2D game and have a panel keeping track of the gold the user earns. I’m running into an issue which is that I have an animated sprite (the coin’s animation shows it flipping) however whenever I try adding it to my panel it shows up underneath it. This is only occuring when the image has an Animator/Sprite Renderer. If I have another Image with neither of those components it shows up as it should right next to the number of coins. It’s my first project on Unity and I’m not really sure how to fix my issue. In the image attached I currently have my coin sprite selected which is hidden underneath my panel. I made a duplicate of it and moved it lower down in the interface to show what the coin looks like. Any help is greatly appreciated!
You seem to be using a Canvas. Change the spriterenderer2d to an Image component (image components are what you use to render images on a canvas). Youll have to change your animation after too since youll be using a different component and itll break the current one you’ve made
You can change the order of sprite in the Hierarchy to make the “CoinIcon” appear on the panel,
if that doesn’t work you can change the “Z-Axis”,
and if that doesn’t work, you can make an image again;
This what I have, I wish you learned it