This Unreal Engine plugin provides functionality to easily rename Material Instance assets within the Content Browser according to your project's naming conventions. It supports both individual renaming and batch renaming of all Material Instances within the project.
- Customizable Prefix:
- You can change the default prefix
MI_to any prefix you prefer (e.g.,P_,M_Inst_) through the Project Settings menu.
- You can change the default prefix
- Context Menu Renaming:
- You can rename one or more Material Instance assets by right-clicking them in the Content Browser and selecting the
Rename with Prefix (...)option. The menu dynamically displays your current prefix. - An error message will be displayed if none of the selected assets are Material Instances.
- If multiple assets are processed, a summary dialog is shown with a detailed breakdown of the results.
- You can rename one or more Material Instance assets by right-clicking them in the Content Browser and selecting the
- Batch Renaming:
- You can rename all Material Instances under the
/Gamefolder in your project at once by selecting "Rename All Material Instances" from the "Tools" > "MaterialInstanceRenamer" section in the editor's top menu bar. - A confirmation dialog is displayed before processing.
- A progress dialog is shown during the operation.
- After completion, a summary dialog shows a detailed breakdown of the results (Renamed, Skipped, Failed, Invalid Pattern).
- You can rename all Material Instances under the
- Auto Rename on Asset Creation:
- Automatically renames Material Instance assets the moment they are created in the Content Browser.
- This feature is disabled by default to prevent unwanted renames.
- It can be enabled via "Project Settings" > "Plugins" > "Material Instance Renamer" > "Auto-Rename on Create".
- It can also be toggled on/off from the "Tools" > "MaterialInstanceRenamer" menu.
- Optional notifications are displayed in the bottom-right corner of the editor upon renaming, which can be enabled/disabled in the project settings.
- Naming Convention:
- The plugin renames assets to use a customizable prefix (default is
MI_). For example,M_Sample_InstbecomesMI_Sample. - The logic intelligently handles various common naming schemes to extract a clean base name, such as
M_AssetName_Inst,AssetName_Inst, and evenPREFIX_M_AssetName_Inst. - Assets that already start with the configured prefix are skipped to avoid redundant renaming.
- The plugin renames assets to use a customizable prefix (default is
- Automatic Handling of Duplicate Names:
- If the new name already exists after renaming, a numerical suffix (e.g.,
MI_Hoge1,MI_Hoge2) is automatically appended to prevent naming conflicts.
- If the new name already exists after renaming, a numerical suffix (e.g.,
- Localization:
- Menu items and messages are displayed in either English or Japanese, depending on the editor's language setting.
This is the easiest and most reliable way to install the plugin.
- Visit the Fab product page.
- Add the plugin to your library.
- Open the Epic Games Launcher and install the plugin to your Engine version.
- Launch your project and enable the plugin via "Edit" > "Plugins" if it is not already enabled.
For developers who want to modify the source code or use a specific version.
- Clone or download this repository.
- Copy the
MaterialInstanceRenamerfolder into your project'sPluginsdirectory (create the directory if it doesn't exist).- Path:
[YourProjectDirectory]/Plugins/MaterialInstanceRenamer
- Path:
- Right-click your
.uprojectfile and select "Generate Visual Studio project files". - Build your project using Visual Studio (Development Editor configuration).
- Launch the editor.
You can customize the renaming prefix:
- Go to "Edit" > "Project Settings..." in the menu bar.
- In the Project Settings window, find the "Plugins" section in the left-hand pane and click on "Material Instance Renamer".
- In the settings panel, you can change the
Rename Prefixfield to your desired prefix (e.g.,P_).
- In the Content Browser, select one or more Material Instance assets you want to rename.
- Right-click the selected asset(s) and choose the
Rename with Prefix (...)option from the context menu. The menu item will dynamically display your currently configured prefix. - The asset name(s) will be changed to include your configured prefix. If multiple assets were processed, a summary dialog will be shown.
- Go to the "Tools" > "MaterialInstanceRenamer" in the Unreal Engine editor's top menu bar.
- Select "Rename All Material Instances".
- A confirmation dialog reflecting your custom prefix will appear. Click "Yes" to proceed.
- All Material Instances within the project will be scanned and renamed according to the naming convention.
- A dialog box indicating the results will be displayed upon completion.
You can run the renaming process from the command line using the MaterialInstanceRenamer commandlet. This is useful for automated builds or CI/CD pipelines.
Command Format:
UnrealEditor-Cmd.exe <ProjectFile> -run=MaterialInstanceRenamer [Arguments]Arguments:
-run=MaterialInstanceRenamer: Required. Specifies the commandlet to run.-Path=<Path>: (Optional) The content path to scan for Material Instances. Defaults to/Gameif not specified.-Prefix=<String>: (Optional) The prefix to use for renaming. If specified, this overrides the project settings.-DryRun: (Optional) Simulation mode. If present, the commandlet will log what changes would be made without actually modifying any assets.
Example:
# Dry run scan of the /Game/Characters folder with a custom prefix "MI_Char_"
UnrealEditor-Cmd.exe "C:\Projects\MyGame\MyGame.uproject" -run=MaterialInstanceRenamer -Path=/Game/Characters -Prefix=MI_Char_ -DryRun- Engine Versions: 5.4, 5.5, 5.6
- Platforms: Windows (Win64)
- Redirectors May Remain After Auto-Renaming:
- When the "Auto Rename on Asset Creation" feature is enabled, renaming a newly created Material Instance may leave a redirector in the original asset's place. While this redirector is harmless, it can clutter up your project.
- How to Fix: To clean up these redirectors, right-click on the folder containing the assets (or a parent folder) in the Content Browser and select "Fix Up Redirectors in Folder" from the context menu. This will consolidate the redirectors and remove the unnecessary files.
Please see CHANGELOG.md for the full history of changes.
You can find this plugin on the Unreal Engine Marketplace:
- Created by: Kurorekishi
- GitHub: https://github.com/EmbarrassingMoment
- Support/Issues: https://github.com/EmbarrassingMoment/MIRenamer/issues
This plugin is distributed under the Unreal Engine EULA.