Draw Calls

I managed to completely solve problems and optimize performance regarding draw (setpass) calls in my sprite-based map editor. Though the topic is generally fairly explained in the official Unity documentation, I find that many people have problems putting together an actual system that can render hundreds of sprites from different sheets in about 10 total calls. There are definitely a few key points you mustn’t miss, but maybe aren’t emphasized enough. I’ll put together a small tutorial soon, maybe it will be useful.