Your setup logic should be like this:
Your parent class widget should inherit a vertical or horizontal box, and then you can add the child class, as in the screenshot below.
I did a breakpoint on the for each loop, Something to note, I opened this up yestarday and the “length” node was errored, I refreshed it (Just right click refresh) The error went away and Ive had issues since.
Ok Not sure if this matters at all but I have a widget switcher created when the options are made and the same thing happens. This whole system might be problematic
I was merely hoping we were piping in data dynamically and the array was overwritten.
Ok Not sure if this matters at all but I have a widget switcher created when the options are made and the same thing happens. This whole system might be problematic
That was my next thought - what if you manually create just this widget as a stand alone on Begin Play, without the switcher? Does it behave normally?
Essentially, the array has 5 entries but they never get updated. That’s the gist, right?
Also, which switcher index is this widget at? And what is the default switcher index? I have a weird feeling it has something to do with initialisation.
Try this:
remove the widget from the switcher
modify the array, save, compile
add it back to the switcher
Thinking about it, I’ve seen widgets retainstale data.
Yeah, this is not a dynamic system, it never changes. It doesn’t need to pull from anything. So it just has to add the text to the box and put it in the vert box. (Ill then be attaching some non-dynamic but animated stuff around it.)
Ok so I removed it from the switcher, changed the data, reput it into the switcher and then tried again and lo and behold.
My brain is foggy today, Yeah, that above is exactly it. It no longer uses the updates from the initial widget, as soon as it’s under the widget switcher widget it sources all its content from there now I guess.
Absolutely wild. This actually might have cleared up some problems I was having like 6 months ago as well that I solved but didn’t really understand what or how when I used another switcher for the main game.
Thank you for helping me plough through this, I’ve been 2 days deep and absolutely baffled. Interesting system that I’m defo going to take advantage of.