Huy Minh Ha

Software development, Tech and other stuff

Sun 30 October 2016

Setting sorting layer and order in layer of Mesh Renderer

Posted by Ha.Minh in Unity   

Unity 5.x exposes the sorting layer and order in layer of SpriterRenderer, but not MeshRenderer. Fortunately, it's very easy setting these property of the MeshRenderer in code. I've created a simple solution for setting sorting layer and order in layer of any Renderer component using a simple component called SortingLayerSetter.

It looks like this in the Editor

example 1


    
 
 

Comments