This project is somewhat old and doesn't support parsing the new features added in the newer .vox format. Though it should still be able to load it. Due to constraints from my current employer, sadly I cannot directly work on this for now. I'll be glad to merge PRs : )
Unity3D plugin for MagicaVoxel's "vox" format
Use Tools/MagicaVoxel/Load on the menubar to load and create a GameObject with a voxel model directly
Add MVVoxelModel script to your component
Use editor controls to load "vox" files onto the object
Or use MVVoxelModel's member methods
LoadVOXFile(filePath, importAsIndividualVoxels)
LoadVOXData(data, importAsIndividualVoxels)
MVVoxelModel.sizePerVoxel, MVVoxelModel.voxMaterial and MVVoxelModel.meshOrigin can be configured before loading the file/data
When imported as separate voxels, selecting multiple voxels in the editor will give you a control to combine the selected voxels into a single mesh
Use static methods in MVImporter
Load main chunk:
LoadVOX(file)
LoadVOXFromData(data)
Create meshes from main chunk:
CreateMeshes(mainChunk, sizePerVox)
Or create meshes and GameObjects from main chunk:
CreateVoxelGameObjects(mainChunk, parentTransform, material, sizePerVox)
CreateIndividualVoxelGameObjects(mainChunk, parentTransform, material, sizePerVox)
MIT
And all other contributors