Search Unity

StringTable values go missing after Play

Discussion in 'Localization Tools' started by jamesor, May 24, 2020.

  1. jamesor

    jamesor

    Joined:
    Jan 1, 2020
    Posts:
    11
    I've imported data into 2 StringTables named "GUI" and "Items". After I start the game and stop it, all of the strings are still present in the GUI table, but the Items table loses some values. It seems random. Sometimes it's everything but English and other times it's only one or two languages. English is marked as Preload for both tables and English is never lost.

    Below are screenshots of before and after clicking "Play" followed by "Stop"

    There is no code or UI in the game that attempts to read/write any values from the Items StringTable.

    Before Play
    before.png

    After Stop
    after.png

    Any thought on what I could be doing wrong?
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,280
    Last edited: May 24, 2020
  3. jamesor

    jamesor

    Joined:
    Jan 1, 2020
    Posts:
    11
    Ah thank you, I'll give it a try.
     
    karl_jones likes this.
  4. jamesor

    jamesor

    Joined:
    Jan 1, 2020
    Posts:
    11
    @karl_jones it worked! I used the EditorUtility.SetDirty() method. I updated my import script in the other forum post.
     
    karl_jones likes this.