This page describes the minimal setup for testing runtime destruction in a level.
Make sure the project has the required Unreal Engine plugins enabled:
- GeometryScripting
- GeometryProcessing
- EnhancedInput
- ProceduralMeshComponent
- PCG
The ShatterKit Pro plugin descriptor enables these dependencies automatically when the plugin is installed.
Place a ShatterKit Pro dynamic mesh target in the level. The target should use a mesh that can be converted into a dynamic mesh at runtime.
Important target settings:
- Can receive destruction: enabled.
- Auto split disconnected pieces: enabled when you want large separated islands to become independent actors.
- Collision rebuild: enabled when the target needs gameplay collision after the hit.
- Debris policy: choose the behavior that matches the target and game mode.
For a fast smoke test, place the supplied TestActor4 demo Blueprint in a level and aim it at a destructible target. Press O for its request-configuration HUD; closing the HUD restores gameplay input.
The easiest production setup is to open ShatterkitPro Targets editor mode, right-click the actors that should be destructible, and add them to a target group. Those grouped targets are then eligible for runtime destruction requests.
A tool is the volume used for the boolean operation. Typical tools are:
- Sphere hit volume.
- Box or cube hit volume.
- Static mesh tool placed at the hit transform.
For impact gameplay, keep the tool transform centered near the hit point and oriented along the impact direction.
Use the RequestDestruction (Hit) Blueprint node or the gameplay helper library to request destruction.
RequestDestruction (Hit) is the primary runtime entry point. You can call it whenever gameplay has a meaningful hit result: player fire, projectile impact, overlap damage, scripted tools, or test input. If the hit intersects an actor that was added to ShatterKit targets or target groups through the editor mode, ShatterKit Pro handles the destruction pipeline from that single call.
Common inputs:
- Hit result.
- Tool half extent in cm.
- Optional tool static mesh.
- Tool world transform.
- Operation, usually Subtract for destruction.
- Impact speed.
- Debris policy.
- Affect nearby components.
- Optional Boolean-result debris and Voronoi intersection fracture.
- Ignore actor or instigator when needed.
The node exposes usable defaults, so a basic trace hit can be tested without constructing a custom Data Asset. For a named starting point, call Make Request Destruction Preset and choose Balanced, Projectile, Explosion, Breach, or Precision Cut; then modify any field before submitting the request.
The default node behavior uses a simple box cutter derived from ToolHalfExtentCm. If a ToolStaticMesh is supplied, make sure the mesh is referenced by cooked content and is allowed by the target's network tool mesh whitelist when used in multiplayer.
For the current stable Blueprint workflow, users usually do not need any extra ShatterKit function beyond RequestDestruction (Hit). Use the included TestActor4 Blueprint class as the configurable reference implementation.
For an interactive zero-prep building workflow, open the LargeScale Level Design sample described in Large-Scale and Zero-Prep Workflow.
Use Play In Editor and hit the target from multiple points. Expected behavior:
- The target mesh is carved at the hit location.
- Disconnected islands split into separate pieces when configured.
- Small debris appears according to the selected debris policy.
- The operation should not repair or undo previous hits.
Then test a packaged build. If the editor and packaged build differ, first check whether the custom tool mesh is cooked, referenced, and allowed for runtime/network use.