Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    8,227
  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.