Exporting
File > Export with Collision (Ctrl+E), or right-click an asset in the Content Browser and choose Export with Collision.... The model goes out with its collision, ready for your engine: choose the tool it is For, then one of the Formats that tool reads. The window says what will be written before you write it. Nothing is regenerated: what you see is what you get.
Every export is one file — the model and its collision together — but for Unity, which also needs its collider script in the project (below). An export never replaces the model's own file: if it would land on it (a model in Downloads, exported there under its own name as its own type), the window offers another name (name_Collision) and will not export over the model.
| For | Formats (the first is the usual choice) | Straight into a project |
|---|---|---|
| Unreal Engine | .glb, .fbx | Yes: the Studio imports it for you |
| Unity | .fbx, .glb | Yes: the files go into the project's Assets |
| Godot 4 | .glb, .gltf, .fbx | Yes: the file goes into the project's folder |
| Blender | .blend, .glb, .fbx, .obj | Opens it in Blender |
| Download | .fbx, .glb, .gltf, .obj | Files only, for any other tool |
The model with its collision is ticked unless you only want the collision: untick it to write the collision alone, still named after the model's mesh, to add to a copy of the model the tool already has. Unreal always takes the model too: its collision belongs to a mesh.
Exports go to your Downloads folder, shown beside Save to (on a computer without one, to Documents\CollisionGen Exports). Tick Change location to choose another folder — the Studio remembers it — or send the files straight into a project (below).
When the export is done, a notice in the corner says where it went, with Show in Folder to open that folder with the file selected; it fades after a second, and the Output Log lists it too (Settings > Projects and Export can leave the notice out, or take each asset out of the project once it is exported). An import into an Unreal project, which takes longer, says what came of it in a window of its own (below). If an export cannot be made, a window says why, and nothing is written. A shape that encloses no space (a hull squashed flat, say) cannot be a collider in any engine: it is left out, and the notice says how many were; delete them, or regenerate.
What other engines read
Under the description, amber lines say what the engines will not read in the format you chose: that Unreal ignores glTF physics (it gives the model a convex shape of its own), that Unity reads glTF only with the glTFast package and makes no colliders from UBX_/UCX_ names without its script, that Godot reads glTF physics from 4.3 on and FBX from 4.3 on, that Blender's importer drops glTF physics and its FBX export leaves textures behind, that OBJ has no units (Unreal reads its metres as centimetres). Each says which choice would work instead. Settings > Projects and Export > Hide the warnings about what each engine reads turns them off.
When the program you export for is not on this computer — Unreal, Unity, Godot, or Blender to open the file — the window says so, and so does the notice when the export is done: the file is written all the same, ready for a computer that has it, but nothing here has imported or opened it. (The Studio looks where installers and package managers put them; Godot runs from wherever it is unpacked, so a copy kept somewhere unusual may not be found.)
Resize and Rotate
Both are off unless you set them — here or in Tools > Resize / Orient..., which is the same setting (the Walk Test and new shapes use it too). Each asset keeps its own.
- Resize opens a height field: the model and its collision are scaled evenly so the exported model is that tall. Use it when a model's units are off (a building 300 units tall that should be 8 m). Beside it the window shows how tall the model's file has it, and the scale the height gives it.
- Rotate shows how the export is turned, with Set in Viewport.... That puts the viewport in Resize / Orient mode: drag the rotation rings until the model stands upright and faces forward (Unreal's forward is the red X axis), turn on Snap for steps, set the Height there if you like, then click Done (or press Enter). The Export window comes back with the new orientation; Esc leaves it as it was and Backspace resets it. The model and its collision turn together, about the model's origin.
The same mode is Tools > Resize / Orient..., and the Walk Test uses the same size and orientation (see The Walk Test). Editing shows the model as its file has it. Every format carries the change — glTF and FBX as a root that turns and scales everything, OBJ applied to its points (OBJ has no units, though: a tool that takes its metres for centimetres, as Unreal does, shows it 100 times too small).
Unreal Engine
The collision comes as meshes named UBX_mesh_00 (boxes) and UCX_mesh_01 (convex hulls), which Unreal turns into the static mesh's own simple collision. A model in several parts goes as one mesh (each material its own section), so all of its collision stays on it. Two ways in:
- Drag it into Unreal's Content Browser (or Import), with the project open: Unreal's default import settings read the collision. If someone changed them, the ones that matter are Import Collision According to Mesh Name and One Convex Hull per UCX, both on.
- Import it into an Unreal project for me: tick it in the Export window, choose the project (its .uproject file, or its folder) and the folder in its Content Browser it goes Into (CollisionGen unless you say otherwise). The window says exactly what will happen before you click Export: the Studio opens the project in that project's own Unreal, in the background — no window shows — imports the file with its collision, saves it and closes Unreal again. It takes a minute or two; a small window shows each step as it goes, and you can keep working. When it is done, a window says where the model is now (with how many boxes and hulls Unreal made), with Open in Unreal; if it did not work, it says why, with Show Unreal's Log.
Is Unreal open? The import needs the project closed in Unreal: it runs in a second Unreal, which cannot work on a project another one has open. The Export window notices when the project is open (and when you close it) and says so; until then, export without the import and drag the file into the Content Browser, which works whether the project is open or not. Unity and Godot, by contrast, take files straight into an open project (below).
If a model arrives in Unreal with a single convex shape around it instead of your collision, Unreal found no collision in the file and made one of its own: the file was exported as glTF or OBJ from Download (Unreal reads neither's collision). Export it for Unreal Engine, or as .fbx.
Boxes arrive as exact box elements and hulls as exact convex elements. The import sets the mesh's collision complexity to Use Simple and Complex, so characters move against your collision rather than the render triangles. .glb keeps the materials as Unreal's glTF importer makes them; .fbx carries base colour, normal and emissive textures. Working in Unreal itself? See CollisionGen for Unreal.
Unity
The files come with CollisionGenColliders.cs, in an Editor folder beside them.
- Put it straight into a Unity project: choose the project's folder (choosing it ticks the box). The model goes into Assets/CollisionGen and the script into Assets/CollisionGen/Editor; Unity imports them as soon as you switch to it — open now or not (closed, it imports them when the project next opens).
- Or copy the exported folder (with its Editor folder) into your project's Assets yourself.
With .fbx (no package needed), as Unity imports the model each UBX_ mesh becomes a BoxCollider and each UCX_ mesh a convex MeshCollider, neither drawn, in the model's prefab — so every copy you place has them. Reimport a model that was in the project before the script. With .glb (the glTFast package), place the model in a scene, select it and choose CollisionGen > Apply Colliders; Undo puts the meshes back.
Godot 4
The collision meshes are named ...-convcolonly: when Godot imports the file it turns each into a StaticBody3D with a convex CollisionShape3D, and does not draw it.
- Put it straight into a Godot project: choose the project's folder, the one with project.godot (choosing it ticks the box). The file goes into the project's collisiongen folder; Godot imports it as soon as you switch to it — open now or not.
- Or drop the .glb (or .gltf, or .fbx in Godot 4.3 and later) into your project yourself.
For Godot's own OMI physics reader (4.3 and later), choose Download and .glb instead.
Godot runs from wherever it was unpacked, so the Studio may not find it on your computer: the Export window then says so, but the file is written all the same. Choosing a Godot project takes the note away — a project of its own shows Godot is about — and the same goes for a Unity project.
Blender
- .blend: a ready Blender file, made by Blender itself (the Studio finds your Blender, or choose blender.exe). The model keeps its materials, their textures packed inside the file. The model is in a collection named after it, with its collision in a collection named Collision inside that, drawn as wireframe in its category's colour and kept out of renders. Tick Open it in Blender when done to go straight there.
- .glb, .fbx, .obj: the one file. Tick Open it in Blender when done and it opens in a new scene set out as above; or bring it in yourself with File > Import, where the collision comes in as plain objects (with their UBX_ and UCX_ names). An .obj holds the shapes only, no materials.
Opened from the Studio, the model is selected (its Material properties show its materials) and Solid view shows its textures. Each collision object keeps its category as a custom property. To use the collision in Blender's own physics, give the collision objects a passive Rigid Body (Physics properties).
On from Blender
The model's collection has a .glb exporter ready (Blender 4.2 and later): click the collection in the Outliner, then in Properties > Collection > Exporters click Export. It writes model_from_Blender.glb beside the file the Studio made: the model with its materials and textures, and the collision — whatever the collection holds, so rework the model first as you like. Then:
- Unreal: drag it into the Content Browser; the UBX_ and UCX_ meshes become the static mesh's collision, as from the Studio.
- Unity: it reads .glb with the glTFast package, and makes the colliders with the CollisionGen script (from a Unity export) — or export for Unity from the Studio.
- Godot: it reads collision by other names (...-convcolonly), so for Godot, export for Godot 4 from the Studio.
- A model in several parts: join them into one first (select them all, Ctrl+J), so all of its collision stays with it: Unreal, for one, makes each part of a file its own mesh and puts all of the collision on the first.
- Not through FBX: Blender's FBX export (File > Export > FBX) leaves textures packed in a .blend behind, whatever its Path Mode, so whatever reads that FBX next — Unreal, Unity, Godot or any other tool — gets the materials without their textures (the collision does come through). Export the .glb instead.
Download
The model with its collision as files, for any other tool:
- .fbx (the usual choice): the collision as UBX_ and UCX_ meshes, the naming most engines and tools follow. Unreal reads it as it imports the file; a model in several parts goes as one mesh.
- .obj: the same naming, for tools that read OBJ — the model's shapes and the collision only, as OBJ keeps materials and textures in other files. Not for Unreal: it reads no collision from an OBJ, and as OBJ has no units it takes metres for centimetres.
- .glb or .gltf: the collision as OMI_physics_shape / OMI_physics_body colliders, the open glTF physics standard read by Godot 4.3+, three.js and others. Boxes stay boxes; hulls are convex shapes. Unreal, Unity and Blender do not read it: the Export window says so when you choose it.
The format a download starts as is the one used last (FBX the first time); Settings > Projects and Export can make it always the same, and choose which tool the Export window starts on.
About the formats
| Format | Carries |
|---|---|
| .glb | Everything, exactly as the source has it: one self-contained file. |
| .gltf | The same, as one .gltf: its data and textures inside it as text (base64), so it is a third bigger than the .glb. |
| .fbx | Binary FBX in centimetres, Y up: the node tree and placement, normals, texture coordinates, smoothing, and materials as Phong with their base colour, normal and emissive textures inside the file. FBX has no metal/roughness maps, so those are left out. A rigged model comes out in its rest pose, without its skeleton, blend shapes or animations. |
| .obj | The .obj alone: the model's shapes and the collision, in metres, Y up, every placement applied (OBJ has no node tree). No materials or textures — OBJ keeps those in other files (an .mtl and images) — though each part still names its material. Big models make big files: OBJ is text. |
| .blend | A Blender file with the textures packed inside (a rigged model keeps its armature and animations). |
Anything a format cannot carry (a WebP or KTX2 texture in FBX or OBJ; skinning, blend shapes and animations) is listed in the Output Log after the export, under "Not carried by this format".