If your game needs to modify a sprite at runtime, you can easily regenerate its collider by using the PolygonCollider2D.CreateFromSprite method.
In this quick-tip short, we’ll show you how to set this up.
🔗 Find more info in the documentation: https://on.unity.com/2DColliderDocs
#GameDev #UnityTips #Unity3D #UnityLearn