Search Issue Tracker

Fixed

Fixed in 1.5.0-pre.7

Votes

2

Found in [Package]

1.4.4

1.5.0-pre.2

Issue ID

LOC-964

Regression

No

GameObjectLocalizer doesn't instantly update UI Text field when Global Variable's value changes

Package: Localization Package

-

Reproduction steps:
1. Open the attached “Repro” project
2. Open the “Assets/Scenes/Scene 0.unity” Scene
3. Enter the Play Mode
4. Press the “Reload Scene” Button in the Game View
5. Press the “Next Scene” Button in the Game View
6. Observe the text in the Game View

Expected result: The UI Text is “Level 1”
Actual result: The UI Text doesn’t update and shows “Level 0”

Reproducible with: 1.3.2 (2021.3.29f1), 1.4.4 (2021.3.29f1, 2022.3.6f1, 2023.1.7f1, 2023.2.0b3)

Reproducible on: Windows 10 Pro (22H2)

Notes:

* The Text actually updates however it updates 1 scene later, if you press “Next Scene” again it will change to a value, which was supposed to be present previously, but never to the current one
* There is a workaround to manually force the Localization update within the script using “GetComponent<GameObjectLocalizer>.ApplyLocaleVariant(LocalizationSettings.SelectedLocale);”

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.