Hello everybody,
I try to randomize the widgets, but I get an error message that there is an infinite loop detected.
Do you have any idea how to fix it?
Thanks in advance for your answer.
This is the error
Hello everybody,
I try to randomize the widgets, but I get an error message that there is an infinite loop detected.
Do you have any idea how to fix it?
Thanks in advance for your answer.
This is the error
Before the reset, put a delay in and destroy the currently visible widget, and you’ll be ok, I think
Is the blueprint you are showing inside of Quiz HUD? If so then I think the last reset call is then invoking the top left reset call so it loops. I’m guessing the final reset’s target may be is supposed to be a child widget?
Unreal’s custom events are not case sensitive so it’s probably the same event.
I’m guessing you don’t want to keep looping an infinite amount of times. Do you want it to repeat a set amount of times or just once?
Promote the created user widget to a variable to be able to delete it later of if needed. Then upon reset you can first check if the cached widget is valid and remove it before creating a new one.
It would be cleaner to disconnect begin play from the create widget and just call reset directly after it.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.