Repository navigation
How To Make A Custom Ship
This walks you through making a custom ship for BattleGroupVR2 and loading it in the game. It assumes some basic familiarity with the Unity Editor. Questions or issues, let me know in the Discord: https://discord.gg/4aCZ56W
https://github.com/kenontherocks/BGVR2-AssetCreator/archive/refs/heads/main.zip
If you want to keep up to date, use GIT CLONE to download instead and GIT PULL to update whenever a new version comes out.
https://unity.com/releases/editor/archive
Use exactly this version. In Unity Hub, add the Android Build Support module (with OpenJDK and Android SDK & NDK) when you install it. That's what builds the Quest version of your mod. Without it you can still build for PC, but Quest players won't be able to use your ship.
In Unity Hub, choose Add > Add project from disk, pick the folder, and open it with 6000.2.9f1. The first import takes a few minutes. When it's done there should be a Tools > BGVR2 menu and a Tools > BGVR2 Mod Builder window.
A ship is made up of a 3D model, its materials, engine flare points, a spot for the bridge, slot placeholders for weapons and components, and a ModShip component with the ship's stats.
Make your own, or find one you have the rights to share. Unity takes FBX and OBJ.
Tools > BGVR2 > New Ship From Template. This makes Assets/Workspace/my-ship/my-ship.prefab, a placeholder destroyer with stats copied from a stock destroyer so it starts out balanced. Rename the folder and prefab to your ship, then double-click the prefab to open it for editing.
Want to see a finished one first? Open Assets/Samples/Sample Ship/Sample Destroyer, see Samples.
Copy the model and its textures into your ship's folder under Assets/Workspace.
Delete the placeholder hull pieces under body and drag your model in as a child of body.

The prefab structure looks like this:
my-ship ModShip component (stats)
├─ body container for your model, keep it at position 0,0,0, rotation 0,0,0, scale 1,1,1
│ ├─ your model scale, move and rotate this however you need
│ ├─ hull collider colliders so the ship can be hit
│ ├─ bridge pos where the bridge is attached
│ └─ engine flares one child per engine nozzle (Flare 1, Flare 2...)
└─ equipment holds the weapon and component slots
├─ slot ... each has a ModSlot component
└─ slot ...
The nose of the ship points along +Z (the blue arrow).

Use Universal Render Pipeline/Lit (or Simple Lit) materials. Hook up the base texture, normal map and emission if it has them. Custom shaders show up pink in the game or only render in one eye in VR, so stick to the URP ones.
Each unit in Unity is 1 meter. Find out how long your ship should be and scale your model inside body to match. You can move, rotate and scale anything inside body but not body itself. The template hull is about 200m long if you need something to measure against. See the Balance Guide for the length of each ship class.
Move the children of engine flares onto your engine nozzles, pointing backwards. Duplicate (CTRL+D) or delete them to match the number of engines. On ModShip you can turn on Override Flare Color to give the flares a fixed colour instead of the fleet's team colour.

Move bridge pos to where the bridge should sit. It's best to put it a bit forward and above where it would really be, so the player isn't stuck inside the hull.

Duplicate, delete and move the slots under equipment. Each slot has a ModSlot component:
-
Tags say what fits. A weapon slot needs one size (
small,medium,large) and one type (turret,beam,cannon,launcher,omni). A component slot needs one ofengine,reactor,shield,offense,defense,support,utility,armor,hangar,special. -
Default Equipment is what the slot starts with. It must be the exact name from the BGVR2 Equipment List, ex
LCT2B. Give every slot a default so ships bought in the shop come fully fitted. - Arc is the turret's firing arc: 360 all around, 180 the front half. The scene view draws the arc.
Weapons can face any direction, and that direction is their starting zero arc position. Every ship needs an engine slot and a reactor slot.
In the scene view, weapon slots are drawn as orange boxes and component slots as green boxes. The line out the front is the zero arc direction, and turrets with less than 360 also show the edges of their arc:

Hangar slots. A slot tagged hangar launches fighters from where the slot sits. Pick the bay layout from its Bay Layout dropdown:
| Bay Layout | Bays |
|---|---|
| Single Forward (default) | one bay facing forward |
| Double Forward | two bays side by side, 20 m apart, both facing forward |
| Double Side | two bays back to back, launching out to each side |
The dropdown stores the value in the slot's Misc Info as singleforward, doubleforward or doubleside. If it finds a value it doesn't know, it shows a warning. Slots that aren't hangars keep a plain Misc Info text field.
Select the root and fill out ModShip. Hover over each field for a tooltip.
-
Class Id is your ship's unique id: lowercase letters, numbers and dashes, ex
falcon-destroyer. It's also the name of the mod, so don't change it once you've published. - Ship Class is the name players see.
-
Bridge Name is the stock bridge the player stands on, ex
h3 small. See the BGVR2 Equipment List. -
Factions decides who sells and flies it:
imperium,khepri,barcid,rebellion,setesh,pirate. Empty means Imperium, Khepri and Barcid. - Health, armor, shields, speed and turn: use the Balance Guide so your ship isn't too OP.
- Auto Stats is on by default. It works out cost, energy and mass the same way the game does for its own ships.
Optional extras: Death Sounds for the final explosion, a ModEngineSound component for your own engine loop, Color Skins for alternate materials, and Hide Shield Hits to turn off the shield ripple.
The template has one box collider called hull collider under body. Resize it to fit your ship, or replace it with a few boxes for a better shape. They don't have to be super accurate, the general shape will be fine. Don't put a mesh collider on a detailed model.
CTRL+S, then exit prefab editing with the back arrow above the hierarchy.
Tools > BGVR2 Mod Builder and pick your ship from the Ship dropdown. The box at the top shows what stock ships of the same length look like, so you can see if your stats are way off.

Press these in order:
- Auto Size sets the ship size from your model. This is used for the shield bubble and a few other things.
- Signal Lights puts the blinking lights on the outer points of your hull, like the stock ships.
- Merge Meshes merges your model into one mesh per material so it draws faster.
- Generate LODs makes lower detail versions for when the ship is far away. Big ships can take a minute. This matters a lot on Quest, see Quest Performance.
- Validate checks everything. Red messages have to be fixed before you can build, yellow ones are warnings. Show takes you to the object the message is about.
- Preview takes the picture used in the shop and on mod.io.
AUTOSIGN writes your Steam ID into the ship (Steam must be running). This is optional.
Tick Windows (PCVR) and Android (Quest) and press BUILD MOD. It switches Unity to each platform, builds, and switches back. The first Android build takes a while.
When it's done, Open output folder shows:
Mods/
my-ship/
mod.json
preview.png
windows/my-ship
android/my-ship
my-ship-windows.zip
my-ship-oculus.zip
Copy the whole Mods/my-ship folder to:
C:\Users\[yourname]\AppData\LocalLow\SpaceOwl Games\BattleGroupVR2\mods\my-ship
Create the mods folder if it isn't there. Anything not inside its own folder in mods will not be loaded.
Make sure Load mods is on. Your ship should be listed with the installed mods.
Start a Skirmish and add it to a fleet like any other ship, or visit a shipyard of one of its factions in Open World.
Restart the game after replacing a mod's files.
Once it's ready to be shared with the universe, see Publishing To mod.io.
See Troubleshooting.
Modding support: https://discord.gg/4aCZ56W