- 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