Search Unity

Option to make Localize String Event non-async?

Discussion in 'Localization Tools' started by julcreutz, Jul 29, 2021.

  1. julcreutz

    julcreutz

    Joined:
    May 4, 2021
    Posts:
    21
    Currently, there's no option to make the localize string event non-asynchronous. Seeing as the localization package uses Addressables, it should be possible to add an option to make it non-async, right?

    That'd be a great feature addition in my opinion. I'd rather like my game to freeze for a frame than having the operation be async and showing a placeholder text.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,292
    We have the WaitForCompletion flag to do this.

    upload_2021-7-29_18-52-56.png

    It does have a bug in the current version when entering play mode but this will be fixed in the next release.
     
  3. julcreutz

    julcreutz

    Joined:
    May 4, 2021
    Posts:
    21
    Oh my god. So sorry for this. I always look over these things haha. Glad it's already implemented!
     
    karl_jones likes this.
  4. ManuelRauber

    ManuelRauber

    Joined:
    Apr 3, 2015
    Posts:
    122
    Hi Karl!

    Which version are you referring to by "will be fixed in the next release"?

    I currently have the issue, that the editor freezes when entering playmode. Just followed the QuickStart Guide for Unity 2020.3.
    Localization Package version is 1.0.0-pre.10.

    Thanks!

    Edit: Indeed, if I turn off "Wait for Completion" it does not happen and works as expected
     
    Last edited: Aug 19, 2021
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,292
    1.0.0-pre.11. should be out by the end of the month.
     
    ManuelRauber likes this.
  6. ManuelRauber

    ManuelRauber

    Joined:
    Apr 3, 2015
    Posts:
    122
    Sounds good, thank you!