Search Unity

Question Preload table does not seem to work

Discussion in 'Localization Tools' started by Grizzant, Oct 21, 2020.

  1. Grizzant

    Grizzant

    Joined:
    Jun 4, 2015
    Posts:
    8
    Hi all,

    I have a simple StringTable containing one single string entry translated in only one locale.
    I have checked the "Preload All Tables" and "Preload Table".
    In my UI, i have a GameObject with a Text component and a LocalizeStringEvent component referencing the correct table / table entry.

    I expect that when i enter in Play mode, the UI's text is immediatly updated without delay.
    But i see for about 1s the default text, then it is replaced by the translation.

    Any clue on what i am missing ?

    Thanks beforehand !
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,277
    There's going to be an initial delay while it does the preloading. You can use the initialization operation to create a loading screen or do the preloading in a menu before the game starts.
    The loading is done asynchronously so we can't block while we load and instead have to wait a few frames.
     
  3. Grizzant

    Grizzant

    Joined:
    Jun 4, 2015
    Posts:
    8
    Ok clear, thank you for this fast answer !
     
    karl_jones likes this.