Setting up colliders for static meshes within the engine is possible but is super cumbersome due to the UI limitations. The Static Mesh editor in UE5 isn't as full fledged as lets' say Blender. I've been trying to see if there was a way for me to import the collisions into UE5 without actually editing them in the UE5 editor.
I assumed i would have to build a custom pipeline to export these colliders from blender and import them into UE5, but its' not needed. UE5 while importing static meshes, is able to import and set colliders if you name them right.
Supported prefixes:
- UBX_ Box collision
- UCP_Capsule collision
- USP_ Sphere collision
- UCX_ Convex collision
And if you want to add multiple colliders to a mesh, you just add _01, _02 ... suffix to the name of the collider. Here is an example of how its' done for a simple mesh named "Table"
when imported into UE5 and open the Table static mesh, you should see something like this.. when you enable simple collision view
No special import scripts, no fancy exporters .. just name them right and you get them assigned in the editor. This is fairly simple and very useful for setting up efficient collisions for movement of the player. Note that keeping the simple collisions as "Simple" and efficient as possible is important for performance.
Comments