百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

Unity-2D-Destruction

> 编程语言
开源

Unity-2D-Destruction Unity 2D Destruction 是一个基本工具,可将 2D 精灵分解成碎片,从而实现惊人的摧毁效果!请参阅 …

667 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Unity-2D-Destruction Unity 2D Destruction 是一个基本工具,可将 2D 精灵分解成碎片,从而实现惊人的摧毁效果!请参阅 …

Unity-2D-Destruction

Unity 2D Destruction is a basic tool for breaking 2D sprites into fragments for awesome destruction effects!!!

See it in action!

[Unity Forum] (http://forum.unity3d.com/threads/free-open-source-unity-2d-destruction.382416/)

[Tutorial Video] (https://youtu.be/pe4_Dimk7v0)

Instructions for Basic Use

  • Import the Unity 2D Destruction package
  • drag a sprite into your scene
  • Add an Explodable component and a PolygonCollider2D or BoxCollider2D
  • Set your parameters and click Generate Fragments (repeat until you are satisfied with your fragments)
  • During gameplay, call explode() on the Explodable component to destroy the original sprite and activate the fragments

Detailed Explanation of Parameters

Allow Runtime Fragmentation: Set this to true to generate your fragments during gameplay instead of in the editor. When you call "explode()" the fragments will be generated and the original destroyed. The fragmentaiton operation isn't the fastest so I don't really recommend this.

Shatter Type: Can set this to generate triangular fragments or more "realistic" voronoi fragments.

Extra Points: Ordinarilly the fragments are generated using the points of the collider. With this parameter you can add any number of random points inside the bounds of the collider. Use this to get more random and interesting pieces.

Subshatter Steps: For each subshatter step, the fragmentation operation will be run on each generated fragment. For example if it's set to 2 your sprite will be fragmented, then each fragment will be fragmented, and then those fragments will be fragmented again. I wouldn't set this above 2 and usually 1 is enough.

Fragment Layer: The layer you wish the fragments to be set to

Sorting Layer: The sorting layer you wish the fragments to be set to

Order In Layer: The order in layer you wish the fragments to be set to

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言