I have a scenario where when a player walks by an object they can interact with, a button is added to a horizontal box on their main UMG widget. The exact flow does this
Clear Children in horizontal box
For each object the player can interact with…
Create a new widget with the button and add it to the horizontal box
I have noticed that, after a while, this will stop responding. It gets “frozen”. Clear all children no longer removes anything and “add child” no longer adds anything. Any buttons that were on the players screen when this happens remain usable. The return value from subsequent “add child to horizontal box” calls will return a valid object. But nothing updates.
I thought maybe something wasn’t clearing right so maybe this gets provoked when you hit too many total children added. However I have had this issue happen with as few as 20 total children and as many as 200.
I have tried to reproduce this in a separate project by flooding a horizontal box with children and clearing them out rapidly but I couldn’t provoke the issue.
Here’s a video of the issue in action … it happened pretty quick for this recording: https://youtu.be/EO8PRuwqzPo
Here is the UMG code being called https://i.imgur.com/1OSY8nQ.png (removed all the debugging messages to make it cleaner for the screenshot)
I have no idea what I might be missing here but it’s driving me nuts!