Skip to content

sabikku/unity-sprite-cutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unity-sprite-cutter

Simple solution for cutting sprites in your game.

What it does, exactly, with given GameObject:

  • converts SpriteRenderer to identical MeshFilter/MeshRenderer components
  • cuts through the mesh - the Texture itself isn't cut, all magic comes from setting "cutted" UVs
  • converts BoxCollider2D and CircleCollider2D into PolygonCollider2D
  • cuts through the collider paths
  • returns cutting result as two new GameObjects (so you can still do whatever you want with the original one) or as one ("cutting off" new GO from existing one)

Limitations

  • EdgeCollider2D isn't supported.
  • Non-convex Collider2D shapes aren't supported.

About

Simple solution for cutting sprites in runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages