Question by
ItsAaron · Jun 19, 2018 at 05:51 PM ·
2dspritesspriterenderer2d spritesmasking
Fading groups of sprites cheaply?
Hi.
I'm using Unity2D for this. I have two groups of sprites, and throughout the game they will fairly often fade out as the other fades in. I first achieved this with a script attached to everything that fades which decreases the SpriteRenderer alpha every 0.05 seconds. As there are a great many sprites in the level though this is obviously very costly. I then thought to fade two sprite masks that each mask a separate group, but if sprite masks can be faded I haven't managed to find out how.
Can anyone think of a non intensive way of fading out large groups of sprites?
Thanks in advance!
Comment