To split one sentence to words. then create text object for each word

You could use the javascript method string.split(" “). When you have the sentence, make it into a scene variable, the create a javascript event that uses
let strList = runtimeScene.getVariables().get(“name of the variable”).getAsString().split(” ")
for (let i in strList){
runtimeScene.getVariables().get(“name of the variable”).getChild(i+1).setString(strList[i])
}
to convert the string in a struct where 1 is the first word, 2 the second etc. There you can apply this method: How to batch create a lot of random objects in an event of a scene? - #3 by Gyuszko to create an instance for each.

1 Like