Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Change casing (e.g. to upper case or lower case)

Discussion in 'Localization Tools' started by CrowbarSka, Nov 2, 2021.

  1. CrowbarSka

    CrowbarSka

    Joined:
    Dec 15, 2009
    Posts:
    192
    Is there a way to change the casing of a LocalizedString?

    For example, my string says:
    "Action Points"

    I want to get that string formatted as:
    "ACTION POINTS"
    or
    "action points"

    This would save on the number of items I have to localize, as otherwise I need individual items for each casing version, which is more costly, plus then it's prone to error having different translations for each one.

    I couldn't see anything in the documenation about this but maybe I'm missing something.

    Thanks!
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
  3. CrowbarSka

    CrowbarSka

    Joined:
    Dec 15, 2009
    Posts:
    192
    Great! Thanks for the quick response. I'll give this a try.

    EDIT: Worked a treat. Thanks
     
    Last edited: Nov 3, 2021
    karl_jones likes this.