Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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,395
    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.