Search Unity

Feedback ignore case parameter

Discussion in 'Localization Tools' started by unknowndevice, Feb 12, 2021.

  1. unknowndevice

    unknowndevice

    Joined:
    Sep 13, 2016
    Posts:
    86
    Would it be possible to add a ignore case parameter to the various set and get methods that involve strings? Not a huge deal but it would be helpful!

    The example use case we have is we some external files where someone sets the table and entry string. When they get imported into the project on asset import a lookup is done for the table/entry. If it exists it's assigned to a LocalizedString.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,300
    Hi,
    Which part do you want to ignore the case? When looking up the key names?
     
  3. unknowndevice

    unknowndevice

    Joined:
    Sep 13, 2016
    Posts:
    86
    Yes. For example using LocalizedString.SetReference(table, entry) it would be useful to have SetReference(table, entry, ignoreCase: true)
     
    karl_jones likes this.
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,300
    Ah ok. I'll add a task to look into it.
     
    unknowndevice likes this.