Hi, I’ve got a small list of sorting layers for all my sprites (“background”, “midground”, “foreground”, etc.), and I’m trying to change it for a few sprites through a c# script.
I’ve looked around, but only things I found were Unity Answers questions from 2014, and I don’t know whether they were relating to the old GUI system, or the new UI one.
I tried typing “Sprite.” and “SpriteRenderer.” for the sprite with the script attached, and I went though anything I could think of, like “.sortingOrder”, “.sortingLayer”, etc. But nothing was coming up in the auto completion of MonoDevelop.
So how do I change the sorting layer?