Hello,
I'm combining 2d sprites and 3d mesh game objects. I need the sprite to render in front of the 3d mesh even when the sprite is behind it.
After doing some research, I've determined that I can set the sorting layer of the mesh. The sprite renderer has a sorting layer by default in the inspector, but the mesh does not, so you have to set it by a script.
I tried Set Property and got the renderer > sorting layer and set it to be the same name as the sprite renderer. Then I set the order behind the sprite. This didn't work. Please help.
Check out my screenshot of fsm.
http://imgur.com/ObZQ6vv How do I set the sorting layer of a 3d mesh so that it's the same as the sprite renderer and see my sprite above the mesh?