The Font Replacer is an intuitive Unity Editor tool designed to simplify the process of replacing fonts across multiple scenes and prefabs. Whether you're working with RTL TextMeshPro (Right-to-Left) components or standard TextMeshPro components, this tool streamlines font replacement with a user-friendly interface.
- Batch Processing: Replace fonts across multiple scenes and prefabs in one go.
- Flexible Font Selection: Option to replace a specific base font or all fonts in the selected components.
- RTL and Standard Support: Works seamlessly with both RTLTextMeshPro and TextMeshProUGUI components.
- Detailed Summary: View the total number of font replacements after the operation.
- Simple UI: Easy-to-use editor window for quick font management.
- TextMeshPro package (included with Unity)
- RTLTextMeshPro plugin (for Right-to-Left text support)
- Download the
FontReplacer
script and place it in your Unity project'sAssets > Editor
folder. - Open Unity and navigate to
Tools > Font Replacer
in the toolbar to launch the tool.
- Open the Tool: Go to
Tools > Font Replacer
in the Unity Editor. - Select Fonts:
- Base Font: Choose the font you want to replace (leave it empty to replace all fonts in the selected components).
- New Font: Select the new font to assign.
- Choose Component Type:
- Select whether you want to replace fonts in RTLTextMeshPro or TextMeshPro components.
- Assign Scenes and Prefabs:
- Drag and drop the scenes and prefabs where you want the font replacement to occur.
- Replace Fonts: Click the
Replace Fonts
button to initiate the replacement process. A dialog will appear with the total number of fonts replaced. - Save Changes: Press
Ctrl + S
(orCmd + S
on Mac) to save all changes after replacement.
This project is licensed under the MIT License. See the LICENSE file for more details.