Bake and Replace All Collision
Bake writes the previewed shapes into the asset’s native simple collision. It is the only step that changes the asset’s collision, and it is undoable.
A normal bake
Press Bake (Ctrl+Shift+B). A normal bake:
- replaces the elements Collider Painter baked before, which it tracks by stable names rather than array positions;
- keeps every element it did not make: imported, hand-made or engine-generated collision;
- says in its message how many elements it baked and, when it kept existing collision, that it did.
Then save the asset. The notification reminds you: “Save the Static Mesh to keep the changes.”
Replace All Collision
Tick Replace All Collision (Details > Bake) to replace the whole simple-collision set, including shapes the plugin did not make. Use it when a mesh already has collision that blocks what you painted, such as a generated convex around the whole mug.
The other editors have the same option:
- Character editor: removes shapes the plugin did not create on the bodies it bakes. Other bodies are not touched.
- Geometry Collection editor: the baked pieces drop every convex hull and external collision object the plugin did not create. Other pieces are not touched.
- Apply Collision Recipe: the Content Browser option applies to the next run only and then switches itself off; the result summary says whether it was used.
What is written to the asset
- Boxes, spheres and capsules become the matching native elements; convex hulls and cylinders become convex elements.
- Each element keeps its collision flags. In Details, Collision Enabled (for example Query and Physics, or Query Only) and Contribute to Mass apply to the hull’s generated shapes, and they are preserved in the cooked body.
- The painted hulls are kept on the asset as editor-only data (asset user data, schema version 3). A packaged game does not need them: they are stripped when the game is cooked, which was checked in a packaged Win64 test.
After a bake
- A bake made by another tool (the Level Editor mode or a recipe) marks the QA results out of date; run QA again. The Static Mesh editor’s own Bake does not, because QA measured the same preview shapes.
- Undo and redo work on the bake like any other edit.
- Definitions written by a newer version of the plugin are read-only in older versions. Collision made by pre-release builds of the plugin is not supported.
Import collision from FBX or OBJ
Import Collision FBX / OBJ reads collision named with Unreal’s prefixes, UCX_ (convex), UBX_ (box), USP_ (sphere) and UCP_ (capsule), and adds them as editable hulls. Choose to Merge with the existing hulls or Replace them (undoable), then bake to apply. The importer uses Unreal’s FBX SDK for binary and ASCII FBX, and reads OBJ collision geometry. Scene features beyond collision geometry are not imported.
Export collision to FBX
Export Collision FBX writes the render geometry with native collision nodes. For one mesh it asks for a file. For several it asks for a folder and writes one FBX per mesh, giving same-named meshes distinct names and never replacing an existing file (it writes a numbered name such as SM_Rock_1.fbx) unless Overwrite Existing Files is on. That option applies to the next export only. The notification lists which file each renamed mesh went to.
From scripts
In C++, FCPBakeService::Bake(Asset, Result, bReplaceAll, Error) performs the same game-thread mutation: false keeps unrelated elements and replaces tracked ones, true replaces all simple collision. FCPBakeService::OnCollisionBaked reports completion. See Scripting and API reference.