Destructible 2D
Unlock the full potential of your 2D games using Destructible 2D, this asset allows you to quickly convert all your boring solid sprites into fully destructible ones!
π‘ Many Demo Scenes β Destructible 2D includes a wide range of tutorial demo scenes, which take you step-by-step through each feature. These scenes contain detailed description text, which explain what is being shown, which components were used, and which settings were used.
π‘ Easy To Use β Destructible 2D was designed to be as flexible as possible, while still being easy to use. To achieve this, each component is fully modular, follows Unity’s inspector design style, has intuitively named settings, and includes detailed tooltip text. If you're a programmer then full C# source code is also included, allowing you to create and modify anything you like!
π‘ Long Term Support β Destructible 2D has received regular updates for over 7 years. Thank you to everyone who was downloaded, rated, reviewed, and provided feedback so far!
π‘ Explosions β This feature allows you to damage your sprites from raycasts, collisions, and much more. The explosion shape can be customized using any Texture2D you like, and I've even included many explosion prefabs to get you going!
π‘ Splitting β If you stamp or slice your destructible sprite into multiple pieces, then this feature makes them automatically split into multiple parts!
π‘ Optimized β If you need your game to run on mobiles then you can click one button to reduce the amount of pixels used. The destruction pixels are stored separately from the visual pixels, so your sprites will still look crisp! If you have large destructible objects then you need complex collider shapes, but these are slow to regenerate/update. To fix this, Destructible 2D optimizes the colliders into grid cells, so only modified colliders get updated!
π‘ Slicing β This destruction mode allows you to slice between two points on the screen, this can be done using the mouse or on mobile devices with fingers!
π‘ Fracturing β If you need your destructible sprite to randomly break into smaller pieces (e.g. cracking an egg), then this feature automatically works when you hit your object enough times!
π‘ Healing β If you want to undo or repair damage done to a destructible sprite then you can heal it using stamps, slices, explosions, or have the whole sprite automatically heal itself over time!
π‘ Scorch Marks β Cutting holes in sprites is nice, but to really show damage you need scorch marks around the damaged area, and this feature makes it really easy!
π‘ Damage Counter β If you need to check how much damage you've done to your destructible sprite then this feature is great. You can see how many pixels you have left, or what % of pixels remain!
π‘ Sprite Swapping β Cutting holes and adding scorch marks to sprites is great, but if you also want to swap the visual sprite underneath based on impact or pixel damage, then this feature allows you to easily do it!
π‘ Detachable β If you have a solid object with parts you want to be able to break/cut off (e.g. a tree with branches), then this feature allows you to easily handle that!
π‘ Transparency β If you have transparent breakable objects (e.g. glass windows), then Destructible 2D comes with a custom shader to handle them. There are even example scenes showing you how to set them up!
π‘ Joint Breaking β If you have a complex joint setup (e.g. ragdoll), then Destructible 2D can be used to break these connections if you cut through them!
π‘ Melting β If you want to simulate melting (e.g. a hot rock melting through ice), then there are components included for that, and example scenes!
π‘ Fixtures β If you need to connect separate parts of a destructible sprite together (e.g. a circuit where the light must connect to the power), then this feature makes it really easy!
π‘ Sprite Shape β If your project uses the SpriteShape package, then you can make them destructible with just a few clicks!
Technical details
This asset uses the VarelaRound font under SIL OFL 1.1; see Third-Party Notices.txt file in package for details.