Skip to content
Top banner bog posts

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.

Change Capitalization in Unity 3d

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:

  1. In Unity Select or Create a TextMeshPro object
  2. With your TextMeshPro object selected, view its properties in the Inspector panel.
  3. 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.
  4. To convert text to uppercase, enclose your text with the <uppercase> and </uppercase> tags. For example, <uppercase>This Text Will Be Uppercase</uppercase>
  5. To convert text to lowercase, use the <lowercase> and </lowercase> tags in a similar manner: <lowercase>This Text Will Be Lowercase</lowercase>
  6. 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:

  1. Download and install AnyCase. 
  2. In any editable text field in Unity, select the text whose case you want to change. 
  3. Choose your desired text case from the ones in the AnyCase window. 
  4. 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+LTo convert selection to lowercase
Win+Alt+UTo convert selection to All Caps (UPPERCASE)
Win+Alt+TTo convert selection to Title Case
Win+Alt+STo convert selection to Sentence case
Win+Alt+ATo convert selection to AlTeRnAtInG CaPs
Win+Alt+OOpens main window with all the app's options
To enable the shortcuts above, you will need the free AnyCase App. Clicking on the table will lead you to its download page.
Here are some more reasons Unity 3D Users love using AnyCase App

Speed: AnyCase performs text conversions almost instantaneously, a boon for fast-paced development environments.

Customizable Shortcuts: Enhance your productivity with the ability to create and use personalized keyboard shortcuts, tailored to your specific workflow needs.

Multiple Case Conversion Options: Beyond uppercase and lowercase, AnyCase provides options that will help you both infile names, string names,and asset naming in general for example, Snake Case (snake_case), Camel Case (CamelCase), and other case styles, offering versatility in text formatting.

Quick Replacement: AnyCase offers a rapid replacement feature that allows developers to instantly swap characters or words within their text, streamlining the editing process.

Multi-language Support: With support for multiple languages and special characters, AnyCase is ideal for global development teams.

Custom Capitalization: The app supports custom capitalization settings, perfect for specific branding or naming conventions in game development.

For Unity 3D developers, managing text case efficiently can be a minor but crucial aspect of the development process. The AnyCase App, with its ease of use, speed, and flexibility, proves to be an invaluable tool, streamlining the workflow and allowing developers to focus more on the creative aspects of game development. You can give it a try for free here.

We use cookies to provide core functionality, analyze traffic, and personalize your experience on our site. To learn more or manage your preferences, please see our Cookie Statement.

Close Popup
Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

Essential for core functionalities such as secure log-in, cart maintenance, and consistent website presentation.

Cloudflare
For perfomance reasons we use Cloudflare as a CDN network. This saves a cookie "__cfduid" to apply security settings on a per-client basis. This cookie is strictly necessary for Cloudflare's security features and cannot be turned off.
  • __cfduid

Technical Cookies
In order to use this website we use the following technically required cookies
  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Save
Accept all Services
Skip to content