Why is my entire array being shown in one text box?


What happens is that the code seems to take the random item from the array repeatedly and stack it onto the text box.
ue5bug

My quick guess would be that OnInitialized is getting called multiple times like you are creating the widget multiple times.

But that is just a guess with the information you have provided.

I would throw a print string debug at the end to see if it shows it multiple times. if it does then you know it is being called more than once

1 Like

I tried your idea and it prints the string three times.

OK so now you just need to figure out why it is being called three different times and if you clean that up it will solve the problem.

2 Likes

I fixed the problem, thanks for your help! My use of replication was bugging out so I just had to alter some settings and it fixed itself.

1 Like

that’s great to hear!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.