Change order in layer in code?

Hi, I need some help.

I need to access the order in layer of an object from within the code, so that i can make it higher or lower than another object as needed.

sadly, i don’t know how to do this, if there’s an easy way to access the order in layer in the code, could you please tell me?

Renderer.sortingOrder?

1 Like

thanks, that was super easy!