Hi,
I know you can access and change the order of sprites within a sorting layer via gameObject.renderer.sortingOrder.
But is there a scripting way to change the order of the sorting layers themselves?
In the Unity editor you can manually change the order of the sorting layers by means of dragging & dropping in the Edit → Project Settings → Tags and Layers → Panel.
But is there a way to do it with script?
Best regards