I have the following situation:


As far as I can tell it happens because all texts are drawn in front of the background.

This is my hierarchy:


Those are my layers:


Quantity selection is on "Top Layer", all other menus are on the "Default Layer". Prefab for the menus is just an empty object with a Sprite.

I tried changing sorting order for sprites, changing camera modes, nothing worked :/

Does anybody have an idea about why this happens? How to fix it? I'm not great with Unity UI, so any help is welcome
  • Self reply: that was due to using a Sprite component. Using an Image component instead (with a Sprite as its source) fixed that issue :)
  • Yeah, Sprite is a non-UI component, for the UI you'll have to use Image. They don't mix well together in terms of draw order or layering :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.