Gita Assets
Unity / Plugin

Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro

Overview

Voxel Destruction Pro (version 1.1.0) by Atan is a high-performance voxel destruction tool for Unity. It loads .vox files created in the free voxel modeling software MagicaVoxel directly from the StreamingAssets folder, and can also procedurally generate voxel data, enabling real-time destruction of voxel models. This package is a complete remake of Voxel Destruction, built around the Unity job system for fully multithreaded processing: vox files are read once and cached, fragments are created in real time, functionality is split into multiple scripts for use as needed, and it supports custom origin points, customized real-time fragments and different destruction types. Documentation and code comments have also been improved.

Key features

Voxel meshes use vertex colors
Greedy mesh job generates triangles, vertices, normals and vertex colors
Collider baking can be done using a job
Isolated pieces are found using the Connected component labeling algorithm
Multithreaded job system: greedy meshing, mesh creation, collider baking, voxel search, connected component search and fragment generation
Custom origin points, customized real-time fragments and different destruction types
Fragments are created in real time; vox files are read once and cached

Included content

MagicaVoxel .vox file loader (StreamingAssets)
Procedural voxel data generation
Greedy Meshing job
Mesh creation job
Collider baking job
Voxel search job
Connected component search job
Fragmenter job
Multiple feature scripts, usable as needed

Compatibility

Version sold by this store: 1.1.0; actual support is based on this version.
Unity 2022.3.23 / 2022.3.23f1
Built-in render pipeline: Supported
URP: Supported
HDRP: Not supported (no default shader or HDRP demo scene included; the official description states it should work, but no default support is included)
Platforms: Windows, Linux, Android, WebGL, VR (tested on Oculus Quest 3)
macOS and iOS: Not tested, but should work fine

Requirements

Unity 2022.3.23 / 2022.3.23f1
MagicaVoxel (for creating and importing .vox files; optional, voxel data can also be generated procedurally)
BetterStreamingAssets
VoxReader

Render pipeline compatibility

UnityBuilt-inURPHDRP
2022.3.23f1

Technical specifications

Original creator
Atan
Current official version
1.1.0
Supported engines
2022.3.23, 2022.3.23f1
Render pipelines
2022.3.23f1 · URP / Built-in
Official file size
24.27 MB
Official update date
2025-11-05
Asset file count
186
Package format
unitypackage
First official release
2024-07-22

Tags

Full description

Try it yourself: Directly load from MagicaVoxel vox files This package allows you to model anything in the free voxel modeling software "MagicaVoxel" and then save it in the StreamingAssets folder and directly load it in Unity. Additionally, you can also procedurally generate the voxel data, and the package makes it easy to add your own functionalities. Compatibility Windows: Supported Linux: Supported Android: Supported WebGL: Supported VR: Supported, tested on Oculus Quest 3 macOS and iOS: Not tested, but should work fine The package should also work with HDRP, but there is no default shader or HDRP demo scene included. Fully multithreaded This package takes heavy use of the Unity job system, in order to put the load onto the other cores instead of the main thread. The jobs are: Greedy Meshing: Generates the mesh using a greedy meshing algorithm that minimizes the triangle count Mesh creation: Creates the mesh data directly from the NativeArrays returned by the Greedy Mesher. This saves performance since you don't have to copy the data to the main thread. The bounds of the mesh will also be calculated inside this job Collider baking: Whenever you set the mesh of a MeshCollider, it will bake this collider. This takes up a lot of performance especially for complex meshes. We allocate this onto another thread which ensures that the main thread performance is not affected Voxel search: Whenever a destruction occurs, this job searches the voxels that are affected by it, using distance calculations Connected component search: If a voxel object contains floating fragments that are not connected to the main mesh, we need to separate those. This can be done using the Connected component search algorithm Fragmenter: This job creates the fragments from the removed voxels Most of these jobs use simple interfaces, which allows you to add your own implementations. Future updates may also introduce new implementations for some of these jobs. Full package remake This package is a complete remake of the Voxel Destruction package, compared to the previous package it has a lot of improvements: Better performance: The new package is much faster, there are many performance improvements. You can now fluently destroy models that were barely able to load in the old version of the package. The fragments now also get created in real time, which allows you to further personalize the destruction. Higher usability: The functionalities are now split into multiple scripts, that allow you to only use the features you need. There also is the option to create personalized voxel objects that load data procedurally. The documentation has also been improved and there are more comments in the code, it now contains more details on how to use the package. More features: You can now use new features like custom origin points, customized realtime fragments, different destruction types and more Less loading time: There are now smarter caching functionalities that will ensure that the vox files are only read once and then cached Credits Outline shader used in the screenshots: This package uses: - BetterStreamingAssets - VoxReader - Voxel meshes use vertex colors - Greedy mesh job generates triangles, vertices, normals and vertex colors - Collider baking can be done using a job - Isolated pieces get searched using the Connected component labeling algorithm

Ratings and reviews

You can rate and review this item after purchase.

No buyer reviews yet.

Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 3Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 4Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 5Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 6Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 7Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 8Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 9Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 10Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 11Unity Voxel Destruction Pro 1.1.0 High-Performance Destructible Voxel Plugin | Voxel Destruction Pro · Unity Plugin · Preview 12
Contact support