Hi Chris,
I am using script to get componet string var value. But no matter i use .GetValue() or .TextValue, it still only get the original value. I have already set the component var translated. and already gather speech and with proper translation text input in the speech manager. I still can't get the correct translation value form the component string var. so, how can i get by script. Thanks. I try to ust actionlist to copy componet text var to gobal string var. and it can show. but in script, it can't. pls help, thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Use GetValue, passing in the language you wish to use. For the current language:
thanks, it works. how about set value to a gobal string var with script? with the correct language. thanks.
SetValue can be used to update it's value - see the Manual's "Variable scripting" chapter.
As translations are recorded and set in the Editor, if you want to use different languages you're better off using a PopUp variable as this supports translations.