I am creating an interactive presentation where you can click on certain parts of a cooling system and then a textbox pops up on screen giving more detailed information about the part the user clicked on.
I have two widget text blocks. One for the headline and one for the info text. I can set the Headline with the first part of the Event. The second set Text is an identical copy, the only thing I changed are the text block that is targeted and the text array variable that feeds the input.
The headline works great but the info text block is empty.
Weirdly it works when I plug in the text array that contains the headlines.
I believe I am using the set text node as shown in the image above. It takes the textblock variable as an input. It also works on the first set text node but the second one seems to be getting an empty text value.
I receive the correct value as an input for the event. However the find node takes that string value and does not return the expected corresponding integer value. Further even if the integer were correct only the first of the two text arrays seems to return the correct text value corresponding to the integer value, the second text array only return empty text values, even if I duplicate the first array and use the duplicate instead.
It might be helpful if you can post or at least tell, how you’re assigning value to the array, my guess is that instead of adding elements you’re assigning a value which will override the previous value (losing previous elements only the last time you assign value will remain)
I’ve used the Default Values in the Array Variable to assign the Values for now. I might want to read a txt file later on to fill the array but for now I would be happy if this method worked.