Hello,
I am trying to reference a localized string and get its value in a smart string.
AtomName here is a LocalizedString. When I check it in the inspector preview, it works correctly:
However, this is what I see in TextMeshPro - Text (UI) component:

The necessary string tables are loaded.
I should also mention that I am changing the LocalizedString in the LocalizeStringEvent component where this is happening:
private void AtomStructureEvents_OnTaskActivatedLocalized(LocalizedString instruction)
{
_localizeStringEvent.SetStringReference(instruction);
}
The SetStringReference is a custom extension method:
public static void SetStringReference(this LocalizeStringEvent stringUnityEvent, LocalizedString stringReference)
{
stringUnityEvent.StringReference = stringReference;
stringUnityEvent.TryRefreshString();
}
public static bool TryRefreshString(this LocalizeStringEvent stringUnityEvent) =>
stringUnityEvent.gameObject.activeInHierarchy &&
stringUnityEvent.enabled &&
stringUnityEvent.StringReference.RefreshString();
What could be the issue here?
Thanks!

