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

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.