3D object in 2D game

Hi all, I’ve been working in a 2D for a while now and I’ve been using Sorting Layers to sort the depth of all my sprites without any problem.

I’ve also integrated some objects with Mesh Renderers to it without any problem (mostly Spine animations) using a script that lets me edit the sorting layer, but now I got an actual 3D object with depth that’s giving me problems when I try to sort it using the sorting layer system.


If I just use sorting layer then the objects appears on top of everything else and it seems to ignore sorting order. Any ideas about how to fix this?

I think what you’re trying to achieve is simply by moving the objects on the Z axis, there’s really no problem when you’re working in 2D.