I am making a 2D game and I really need to know how to access and modify dynamically the "Order in Layer" parameter of the Sprite Renderer of a Game Object. I've searched a lot and I couldn't find anything.
I'm pretty sure the answer is no, but you can change it programmatically in the same place where you switch animations.. Edit: Tested it, you can't do it..