It looks like you're new here. If you want to get involved, click one of these buttons!
Hi so I am making a game for a uni project and I started off using shapes instead of sprites and I don't have enough time to change it all to sprites now. I have some sprites that I need to render in front of the shapes. I found this script online which says that it exposes the sorting layer in the mesh renderer component in the inspector: https://gist.github.com/sinbad/bd0c49bc462289fa1a018ffd70d806e3 . I tried it and it works, I can edit the sorting layers for the mesh renderer in the inspector... but it doesn't seem to be making any difference to the sprite rendering in front or behind the shape in my scene. What am I missing? Does this work? What can I do to make the sprite render in front?