How to erase a part of Sprite.

If someone played Worms game, in this game if a bomb explodes near a sprite a circle of that ground in contact with the explosion is removed. Is there any way to do so?

here’s ready working plugin for it,

or you can manually draw/erase pixels on textures,
Unity - Scripting API: Texture2D.SetPixel (but its bit slow)

1 Like

Thanks! I will look into it. :wink:

I did it by making the sky a composite collider with void inside and adding to it circle collider at each explosions