GridVids
Sign in with YouTube

Modify a sprite at runtime

Unity Jul 28, 2026 12:08
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

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
Gaming
#Unity3d #Unity #Unity Technologies #Games #Game Development #Game Dev #Game Engine