Hello all! Thank you for reading my post. I created a SpriteShapeRenderer (the red shape in the second image) and it’s always behind the background
What can I do so that it appears in front the background? Please help me
Perhaps you want to read this: Unity - Manual: 2D Sorting
@spiney199 Thank you for your reply. I might not be understanding something, but I’ve tried different sorting layers and Order in Layer for the same sorting layer. My red lava still stays behind the background. Do you have any idea what I’m not getting?
I also tried to sort the two layers by means of the Z-axis but that didn’t work either
Well in what space is your UI? 2D elements and UI elements are kind of two separate systems.
I imagine if your Canvas is in overlay-mode, it will always draw in front of 2D elements. Might have to try camera space so you can physically put 2D elements in front of the UI.
@spiney You’re absolutely right. I changed the Render Mode to Screen Space - Camera and I’m now able to put 2D elements in front of the UI. Thank you so much for your help!
My canvas was in Screen Space-Overlay mode before