How to set a sprite on top of another sprite

I have two sprites in the Scene window. I just dragged them there from the Asset window. One sprite is a Blue circle and the other is a Green square. If I move them so they intersect, the circle gets under the square.

How can I raise one sprite so it stays on top of the other sprite? Or how can I lower a sprite to make it show under the other sprite?

  • using the visual interface
  • using code

Using the editor, CTRL+ and CTRL- will move the sprite “forward” or “backward” through the rendering order (assuming render order is not explicitly defined, or the sprites have the same render order and layer).