I am trying to change the “String reference” of “Localize String Events” through code, like this :
public LocalizedString Title {
set {
this.titleTextUpdater.StringReference = value;
this.titleTextUpdater.RefreshString();
}
}
But when I do, the “Locolive String Event” seems to stop working. It stops reacting to me changing the game’s language, and even displays a different default language than the rest of the game on startup!
Interface is English (correct language the game is in ATM. the Localized String Events there are not code-changed). the localize String Event are set up to modify the textmeshPros, and everything is fine.
…But the cards display the other language available : French. This is where I applied the code shown above. Even though they are setup to change the textmeshpros the same way.
What is going on, here? Is there something to configure somewhere so that ReferenceStrings can be modified on the fly?