I’m trying to replace a word that appears multiple times in a text variable. Trying a yarn text replacement workaround.
And I think that for now the javascript function replace could be the only way to achieve that while we don’t have any manipulation of text that can do it.
But I don’t understand much about the call for doing that on a variable level.
var variable = runtimeScene.getVariables().get("variable name").getString();
// Do whatever you want to the value
runtimeScene.getVariables().get("variable name").setString(variable);
That was out of memory maybe I’m wrong. Use auto complete to be sure.