Im working on this project in unity and I have no idea what is going on with this display layering. At one point whenever I deleted the level text it would also delete the Go Back Button and the $0 in the top right. I have absolutely no clue whats going on. I thought I could fix it by using the “Order in Layer” method but that only shows up on under the sprite renderer and not text. I have 2 videos below showing the issue
It’s not clear from the video what you’re doing exactly, but beware that SpriteRenderers sort by a completely different mechanism than UI, which uses CanvasRenderers. It’s also completely different than Z order, which is traditionally how 3D elements in a scene get sorted.
Unless you absolutely MUST do it, I don’t recommend mixing them up. You can google for various ways to work around ordering issues between SpriteRenderers and CanvasRenderers and MeshRenderers, but you will probably be a happier camper if you just stick with one or the other entirely.