Stop UE4 Adding .FBX File Name as Prefix to Static Meshes?

UPDATE: In Unreal 5.5, you can enable the “Batch Renamer” plugin in the editor and then use that to remove the prefix added for each mesh. Now, that’s only helpful if you’re importing all your meshes from the same file.

In my case, I was importing multiple files, but luckily all the meshes inside each FBX had a name that was prefixed with the name of the FBX collection (e.g., SM_Hallway_Wall_03 contains Hallway_Wall_03, Hallway_Wall_03_Window_01_Opening, and Hallway_Wall_03_Window_02_Opening). So, using the legacy FBX importer in 5.5, I’d end up with meshes named like SM_Hallway_Wall_03_Hallway_Wall_03, SM_Hallway_Wall_03_Hallway_Wall_03_Window_01_Opening, and SM_Hallway_Wall_03_Hallway_Wall_03_Window_02_Opening. To fix this:

  1. I used "regex’ mode in the Batch Renamer.
  2. I set the pattern to SM_(.+)_\1.
  3. I set the replacement to SM_$1.

This worked because my objects all had the name of the static mesh repeated in their actual name.