Can’t get my text render at runtime for unknown reasons while in editor mode everything is ok.
Editor mode screenshot:
Runtime mode:
Unity version: 2020.3.16f1
Localization version: latest
Can’t get my text render at runtime for unknown reasons while in editor mode everything is ok.
Editor mode screenshot:
Unity version: 2020.3.16f1
Localization version: latest
Do you have any error messages? It looks like no Locale is selected, I would expect it to have selected one when entering playmode
Ah, yeah, my bad. but strange behaviour occured: looks like text is updated once i selected any of languages. is this a default behaviour and i should manually update localised text from code side?
You need to configure the Locale selector so it knows which language to start with or it will just use none like you have now.
https://docs.unity3d.com/Packages/com.unity.localization@1.0/manual/QuickStartGuideWithVariants.html#choose-a-default-locale
https://docs.unity3d.com/Packages/com.unity.localization@1.0/manual/LocalizationSettings.html#locale-selector
You misunderstood me, I meant: how to make the text change in runtime (e.g: score number changes every frame ). Now it is do not changes
Oh yes. You will to call RefreshString when you want the string to update itself.
https://docs.unity3d.com/Packages/com.unity.localization@1.0/api/UnityEngine.Localization.LocalizedString.html