- Home /
Fitting 2D collider to a sprite
I am changing my sprite's texture during runtime by setting the alpha to 0 on some parts of it. I want to regenerate the collider on the sprite so it fits to the new texture (ignoring the alpha parts).
How should I go about this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613155030im_/https://answers.unity.com/themes/thub/images/avi.jpg)