> For the complete documentation index, see [llms.txt](https://thebitcave.gitbook.io/magicavoxel-resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thebitcave.gitbook.io/magicavoxel-resources/exporting-models/magicavoxel-to-unity.md).

# MagicaVoxel to Unity

Tips on importing and using models in Unity

## 1. Wrongly Placed Pivot Point

&#x20;*MagicaVoxel Version: 0.99.4.2-alpha*

### Problem

Exporting a *.vox* model to *.obj* and importing as is it in Unity will result in a weirdly placed pivot point.

![The imported character has a wrongly placed pivot point](https://2848349403-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1GLjicm2G4TkYoBqY2%2F-M1GLp69V8s_txoJT94k%2F-M1Gw8KHSRVGEkz-3jMX%2Fwrong_pivot.png?alt=media\&token=8bbc30b0-b2f7-41b3-87a5-a6b56730ac4c)

### Solution

In MagicaVoxel, before exporting the model, do the following steps:

1. Switch to *World Editor* (pressing the *Tab* key or clicking the dedicated button)
2. Open the *Move* section in the *Edit* column
3. Click the *Ground* button
4. Export the *.obj* file
5. Import it in Unity, this should fix the problem

{% embed url="<https://www.youtube.com/watch?v=0DXKi_F0gE8>" %}
