Question by
Ialus · Aug 05, 2018 at 09:41 PM ·
spriterenderermask
How to Cut Sprites In Game
I would like to cut off (remove) parts of a sprite, to destroy and recreate a collider, matching the new shape of that sprite. Like Worms or Gunbound.
I've found a little bit using interactions by pixel [ mySprite.sprite.texture.SetPixel(x, y, transparent); ]
Is there a way to use masks (to change shapes more easily) checking for visibility (or lack of it) under specific mask to set those pixels (parts of that image) transparent then recreating the colliders?
Comment