This tutorial demonstrates how to create a custom Track or scene mod. This approach is suitable for race tracks, parkour maps, or any custom environment for players to explore.
Path in Mod Toolkit: Assets/Samples/com.cydream.trackscene
First, create your scene in MagicaVoxel. Since a track is a complex environment, you should use the World Editor in MagicaVoxel to organize your scene into multiple objects.
To ensure the game recognizes the different parts of your track correctly (e.g., what is the floor vs. what are obstacles), you must follow the specific naming conventions for scene objects.
Refer to the Scene Naming Guide for the complete list of prefixes.
A_ (Static Environment): Use this prefix for the main track geometry, floors, and walls. These objects are indestructible and static.
A_Road, A_Wall, A_StartLineB_ (Dynamic Prop): Use this for obstacles or objects that can be moved or destroyed.
B_Crate, B_Barrier
Ensure you use the correct colors in the palette to define material properties (like hardness or slippery surfaces). See Material ID Mapping.
Once your .vox file is ready:
.vox file into the processor.For more details on the import process, see MagicaVoxel Import.
After generating the prefab, you need to register it in your ModManifest.
ModManifest asset.See Configure Mod Manifest for general instructions.
Now you can build and test your track in the game.