How to Change the Case of Selected Text in Unity 3D Directly in Any Field
by Yaron Elharar (@YaronElharar)
If you’ve ever found yourself buried in game development, meticulously crafting scripts and dialogue, you know that text cases can make a big difference. Getting the text to look just right often means tweaking the case—capital letters here, lowercase there, and you might be looking for an efficient way to convert text case without leaving the Unity editor. In this article, you’ll learn how to change the case of text in Unity in-place. Let’s dive in.
What Is Unity?
Unity 3D is a versatile and widely-used game development engine that enables developers to create 2D and 3D games for various platforms such as PCs, consoles, mobile devices, and even VR/AR systems. Known for its user-friendly interface and powerful capabilities, Unity 3D is a top choice for both indie developers and large studios. It’s used for game development, architectural visualizations, and interactive media installations.
Built-in Ways to Change Capitalization in Unity
To change the case of text in Unity, you can include tags in the text field. The tags included in the text field will modify the case of the text. Here’s how to change text cases in Unity with tags:
- In Unity Select or Create a TextMeshPro object
- With your TextMeshPro object selected, view its properties in the Inspector panel.
- In the TextMeshPro Inspector, you’ll find a text field where you can enter your text. This is where you’ll type or paste the text you want to modify.
- To convert text to uppercase, enclose your text with the <uppercase> and </uppercase> tags. For example,
<uppercase>This Text Will Be Uppercase</uppercase>
- To convert text to lowercase, use the <lowercase> and </lowercase> tags in a similar manner:
<lowercase>This Text Will Be Lowercase</lowercase>
- After applying these tags, Unity’s Game view will show your TextMeshPro object with the text converted to the chosen case.
While these tags are efficient, they eat into your time. To speed things up, use AnyCase.
How To Change Text Capitalization In Unity 3D Directly In-Place
The free AnyCase App offers significant convenience for developers working in Unity 3D. This adaptable tool enables swift and efficient text case conversion directly within any editable field in Unity. Here’s how to effectively utilize it:
- Download AnyCase App (Free & unlimited use in Unity).
- In any editable text field in Unity, select the text whose case you want to change.
- Choose your desired text case from the ones in the AnyCase window.
- The chosen case will immediately apply to the selected text.
For faster text case conversion, you can use the shortcuts provided in the table below. The best thing is it’s not limited only to TextMeshPro.
Windows Shortcut (keys to press) | Action |
---|---|
Win+Alt+L | To convert selection to lowercase |
Win+Alt+U | To convert selection to All Caps (UPPERCASE) |
Win+Alt+T | To convert selection to Title Case |
Win+Alt+S | To convert selection to Sentence case |
Win+Alt+A | To convert selection to AlTeRnAtInG CaPs |
Win+Alt+O | Opens main window with all the app's options |
Final Thoughts
As you’ve seen, changing text case in Unity 3D doesn’t have to be a cumbersome process. While Unity offers built-in tags for case conversion, they can be time-consuming to implement, especially when working with large amounts of text. The AnyCase App provides a more efficient solution, allowing you to change text case directly in any editable field within Unity, including but not limited to TextMeshPro objects. With its easy-to-use interface and customizable shortcuts, you can streamline your workflow and focus more on crafting your game’s content with zero time wasted on text formatting needs. Remember, the free version of AnyCase App includes unlimited use for Unity, so you can enhance your development process without any additional cost. Whether you’re working on dialogue, UI elements, or script variables, having a quick and versatile text case conversion tool at your fingertips can significantly boost your productivity in Unity 3D.