Search code examples
unity-game-engineoverlap

How to put object in front of another? (Unity 2d)


I would like to put the red cube above the gray area like the green one.

I tried pulling it up on the z axis but nothing happens and i found nothing on google but this seems like it should be something easy to do. Help?


Solution

  • You need to change the order layer. Definitely more number puts the layer forward.

    enter image description here