Search Unity

Resolved Locales are not saved after editing in script.

Discussion in 'Localization Tools' started by ok8596, Feb 27, 2022.

  1. ok8596

    ok8596

    Joined:
    Feb 21, 2014
    Posts:
    40
    Hi, I've written a script to edit Locale, but when I save and reopen Unity, Locale reverts to the previous state.

    I'm using
    LocalizationEditorSettings.GetStringTableCollection(TABLE_NAME).StringTables[0].AddEntry(KEY, LOCALE)
    and
    LocalizationEditorSettings.GetStringTableCollection(TABLE_NAME).RemoveEntry(ENTRY)
    for modifying locales.

    Are the changes made by these not saved?
     
  2. ok8596

    ok8596

    Joined:
    Feb 21, 2014
    Posts:
    40
    OK, I see for using SetDirty()
    It is difficult to understand how to use the API only...
     
    karl_jones likes this.