https://github.com/son1kxdev/replacefontunity
A simple Unity Tool that allow you to easily replace the font of text components
https://github.com/son1kxdev/replacefontunity
unity unity-editor unity-plugin unity-tool
Last synced: 3 months ago
JSON representation
A simple Unity Tool that allow you to easily replace the font of text components
- Host: GitHub
- URL: https://github.com/son1kxdev/replacefontunity
- Owner: Son1kXDev
- License: mit
- Created: 2023-04-30T23:58:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T02:54:56.000Z (about 2 years ago)
- Last Synced: 2024-10-10T10:07:35.699Z (over 1 year ago)
- Topics: unity, unity-editor, unity-plugin, unity-tool
- Language: C#
- Homepage:
- Size: 17.6 KB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Replace Font Plugin
This plugin allows you to replace the font in Text and TextMeshProUGUI components in your project, scene or prefab with a single font.
## Installation
To install the plugin, simply download and import the *ReplaceFontTool.unitypackage* into your project.
## Usage
The plugin provides several methods to replace the font in your project:
### Replace the Font in Specific components
This method replaces the font in specific Text or TextMeshProUGUI components.
To use this method, go to `Tools > Project > Replace Font` in the Unity Editor. A window will appear, allowing you to select the font you want to use. First select the font type on `Type` enum. Next select the font you want to use. Click on `Find place` enum and select `Specified`. Add all components where you need to replace the font to `Specified Objects` list. Click the `Replace` button.


After all process you can click the `Clear` button to remove all items from `Specified Objects` list.
### Replace Font in Scene
This method replaces the font in all Text or TextMeshProUGUI components in the current scene.
To use this method, go to `Tools > Project > Replace Font` in the Unity Editor. A window will appear, allowing you to select the font you want to use. First select the font type on `Type` enum. Next select the font you want to use. Click on `Find place` enum and select `Current scene`. Click the `Replace` button.


### Replace Font in Prefab
This method replaces the font in all Text or TextMeshProUGUI components in all prefabs in your project.
To use this method, go to `Tools > Project > Replace Font` in the Unity Editor. A window will appear, allowing you to select the font you want to use. First select the font type on `Type` enum. Next select the font you want to use. Click on `Find place` enum and select `Prefabs`. Click the `Replace` button.


### Replace Font in Project
This method replaces the font in all Text or TextMeshProUGUI components in all scenes and prefabs in your project.
To use this method, go to `Tools > Project > Replace Font` in the Unity Editor. A window will appear, allowing you to select the font you want to use. First select the font type on `Type` enum. Next select the font you want to use. Click on `Find place` enum and select `All files in project`. Click the `Replace` button.


## Notes
- This plugin only replaces the font in Text and TextMeshProUGUI components. It does not replace the font in other components that use fonts, such as SpriteText.
- This plugin does not create a backup of your project before making changes. Please make sure to back up your project before using this plugin.
- This plugin does not support multiple fonts. You can only replace all Text and TextMeshProUGUI components with a single font at a time.