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