r/UnityHelp • • Feb 27 '22

Are Unity sprite masks performance based on mask count or overall sprite count?

I'm building an indoor outdoor system where when inside a house the rest of the map will fade to black, but still within world space.

In order to accomplish this I will require a spritemask over the entire scene, when the player is "Outdoors" and will swap to a number of smaller spritemasks while indoors (only one spritemask is active at a time).

But I want to make sure its reasonably scalable before implementing it heavily.

2 Upvotes

1 comment sorted by

1

u/Bonejob Code Guru Feb 27 '22

Each Sprite whether it's a mask or an actual content Sprite is considered one I wouldn't be too worried about it on a modern system hundreds of thousands of sprites is not uncommon