View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.2
- Last updated
- First released
- Unity version
- 6000.0.70 or later
- Package size
- 1.2 MB
- Files
- 25
- Favorites
- 14
- Views in the past week
- 28
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $22.50 on
Keywords
Runtime CSG: Booleans, Shatter & Denting
High-performance runtime CSG tool for Unity. Perform fast Mesh Booleans (Union, Subtract, Intersect), Voronoi shattering, and impact mesh deformation—all accelerated by the C# Job System & Burst.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 18
Runtime CSG: Booleans, Shatter & Denting screenshot 1
About this asset
Runtime CSG & Destruction Toolkit
Runtime CSG & Destruction Toolkit is a high-performance C# Job System & Burst-accelerated framework for performing real-time Constructive Solid Geometry (CSG) Boolean operations, procedural mesh shattering, and impact-driven mesh deformation directly in Unity at runtime.
Whether you are building destructible environments, real-time cutting mechanics, bullet denting, or procedural slicing, this toolkit provides a lightweight, dependency-free solution designed for high frame rates and zero main-thread hitches.
⚡ Key Features
- Realtime CSG Boolean Operations
- Perform Union, Subtraction, and Intersection operations between meshes dynamically during gameplay.
- Fast broad-phase spatial checks and robust triangle-clipping pipelines.
- Procedural Voronoi Shattering & Fracture
- Instantly shatter 3D meshes into physics-driven Voronoi cell fragments.
- Control fragment count, noise amplitude, scale, and surface jitter for realistic fracture edges.
- Built-in fragment self-collision management to prevent PhysX depenetration explosions.
- Velocity inheritance allows shattered fragments to maintain parent momentum seamlessly.
- Impact Mesh Deformation & Denting
- Deform mesh geometry in real-time based on collision velocity and impact force.
- Smoothfalloff calculations create realistic dent craters for metal, wood, or soft surfaces.
- Configure hardness thresholds, maximum indentation depths, and dent radii.
- Asynchronous Physics Rebaking
- Offloads Physics.BakeMesh to background threads for asynchronous MeshCollider updates without stalling render threads.
- Intuitive Editor Tooling
- Includes a dedicated Editor Window (CSG Editor Window) and custom inspectors for quick setup, testing, and component management in the Scene View.
🚀 Performance & Architecture
- C# Job System & Burst Accelerated: Heavy spatial calculations and mesh deformations are multithreaded across all available CPU cores.
- Zero External Dependencies: Pure C# and Unity Mathematics codebase.
- Platform Agnostic: Works on PC, Console, Mobile, and VR/AR.
🛠️ Compatibility
- Unity Versions: Supports Unity 6+.
- Render Pipelines: 100% compatible with URP, HDRP, and Built-in Render Pipeline.
From the publisher's Asset Store listing.
Technical details
Core Features & Specifications
- Full C# Source Code: Complete, clean, well-commented source code included (no precompiled DLLs).
- Job System & Burst Acceleration: Core CSG broad-phase, mesh splitting, classification, and vertex deformation powered by C# Jobs (IJobParallelFor) and Burst compilation ([BurstCompile]).
- Memory Optimization: Uses native unmanaged buffers (NativeArray, NativeList) to eliminate Garbage Collection (GC) allocations during runtime operations.
- Async Physics Baking: Offloads mesh collider generation using Physics.BakeMesh on background threads.
- Assembly Definitions: Modular RuntimeCSG.Runtime and RuntimeCSG.Editor assemblies included for clean project compilation.
Package Contents
- Core Runtime Scripts: CSG.cs, VoronoiShatter.cs
- Components: CSGShatterable.cs, CSGTarget.cs, CSGCutter.cs, DeformableObject.cs
- Parallel Jobs: BroadPhaseJob.cs, ClassificationJob.cs, DeformMeshJob.cs, SplitJob.cs, ReconstructionJob.cs
- Math & Geometry: RobustPredicates.cs, CSGMesh.cs
- Editor Tools: CSGEditorWindow.cs, CSGMenu.cs, DeformableObjectEditor.cs
- Demo Resources: Sample scene, custom shader settings, and example prefabs.
Technical Requirements & Dependencies
- Unity Package Dependencies:
- com.unity.burst (1.8.0+)
- com.unity.mathematics (1.2.0+)
- com.unity.collections (1.2.0+)
- Unity Version Support: Unity 6+.
- Render Pipeline Compatibility:
- Built-in Render Pipeline (100% Compatible)
- Universal Render Pipeline / URP (100% Compatible)
- High Definition Render Pipeline / HDRP (100% Compatible)
- Supported Target Platforms:
- Standalone (Windows, macOS, Linux)
- Mobile (iOS, Android)
- Consoles (PlayStation 4/5, Xbox One / Series X|S, Nintendo Switch)
- XR (Meta Quest, Apple Vision Pro, OpenXR)
Documentation: https://leontwemlow.notion.site/Runtime-CSG-Boolean-Mesh-Toolkit-v1-1-Documentation-Technical-Manual-3ad1f841ce15808eb65dc9099a75828c
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.70f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.