VoxAI to Unity
Import AI-generated voxel models directly into Unity for indie games, VR/AR experiences, and mobile apps.
Why Unity + VoxAI?
Unity is the most popular game engine for indie developers, and VoxAI models integrate seamlessly:
🎮 Indie Games
Create unique voxel-style games without 3D modeling expertise.
📱 Mobile Games
Optimized voxel assets perfect for mobile performance.
🥽 VR/AR Apps
Low-poly voxel style runs great on VR headsets.
⚡ Fast Prototyping
Generate game assets in seconds, not hours.
Prerequisites
1. Unity Installed
Download Unity from unity.com. Unity 2019.4+ recommended for best GLB support.
2. VoxAI Model Ready
Generate or select your model in VoxAI. Consider the target platform when choosing cube size.
📐 Recommended Cube Sizes for Unity
| Platform | Cube Size | Why |
|---|---|---|
| PC/Console | 0.015-0.03 | High detail, plenty of GPU power |
| Mobile | 0.04-0.05 | Balance detail vs. performance |
| VR/AR | 0.035-0.04 | Need to hit 90fps |
Step 1: Export from VoxAI
Open View Voxel
Navigate to your model in VoxAI's View Voxel section.
(Optional) Re-voxelize
If targeting mobile/VR, re-voxelize at a larger cube size for better performance.
Download .glb Format
GLB is the recommended format for Unity. It includes mesh, materials, and textures in one file.
Step 2: Import to Unity
Open Your Unity Project
Create a new project or open an existing one.
Drag & Drop
Simply drag the .glb file into your Assets folder in the Project window. Unity will automatically import it.
Add to Scene
Drag the imported prefab from Assets into your Scene or Hierarchy.
Scale & Position
Adjust scale in the Transform component. VoxAI models may need scaling to match your game's unit scale.
Unity Import Settings
Click on the imported asset in your Project window to adjust these settings in the Inspector:
📐 Scale Factor
Default is 1. Adjust based on your game's scale. For reference, 1 Unity unit = 1 meter by convention.
🎨 Materials
Unity creates materials automatically. For URP/HDRP projects, you may need to convert materials to the appropriate shader.
⚙️ Generate Colliders
Enable "Generate Colliders" in the Model tab if your asset needs collision. Consider using simplified colliders for performance.
Performance Optimization
🎯 Use LOD Groups
Create multiple versions at different cube sizes. Use Unity's LOD Group to swap between them based on camera distance.
📦 Static Batching
Mark static objects as "Static" in the Inspector. Unity will batch them together for fewer draw calls.
🎮 Mesh Compression
In the Model import settings, enable Mesh Compression for smaller build sizes (especially important for mobile).
💡 Bake Lighting
For static scenes, bake your lighting. Voxel models look great with baked global illumination.
Game Ideas with VoxAI + Unity
🏰 Roguelike Dungeon Crawler
Generate unique enemies, items, and props for procedural dungeons.
🌳 Cozy Farming Sim
Create charming crops, animals, and decorations.
🚀 Space Adventure
Design ships, planets, and alien characters.
👾 Tower Defense
Generate diverse towers, enemies, and projectiles.
Troubleshooting
GLB not importing?
Unity 2019.4+ natively supports GLB. For older versions, use the UnityGLTF package from the Package Manager.
Model appears too large/small?
Adjust the Scale Factor in the Model import settings, or scale the object in the scene using Transform.
Materials look wrong in URP/HDRP?
Use Edit → Rendering → Materials → Convert Selected Built-in Materials to upgrade materials to your render pipeline.
