I've some problems with Unity layers. Before was everything ok, now, I don't know why the game view show some elements behind. Has you can see in the image the red background in the game view isn't visible even if it has the same sorting layer has the text and its order in layer is fewer.
CodePudding user response:
So, it would be helpfull if you would also share screenshots of the components you use, like SpriteRenderer... Also, also, maybe show the layers you have configured. Here is one setup for example:
You can configure which sorting layers you want and in what order
After that in your Render Component of Choice you can set this layer and use the number (order in layer) for finer sorting
CodePudding user response:
Finally I solved removing the sprite renderer for the background of the parent of the texts and I putted a separated sprite square for all the background with a order fewer