In Wigets, I cannot add a widget I created as a child to the scroll box. Please help!!

My friends, what I’m trying to do is very simple. I’m creating a widget. Then, I try to add that widget as a chield to the scroll box in my Main Widget. I am following tutorials from that guy: UnrealGaimeDev - YouTube

Here my main menu:


It is so simple: Size Box → Scroll Box

Here BPs:


QuestList variable just reference to my scroll box.

Now my whole code working. I m sure, becuase when i try to add to viewport instead of making child to scroll box, it is working. Like this.


The UI I created is not actually as big as the 2nd picture, but it is this big because I added it directly to the viewport.

Please help me <3

Is the quest list a vertical box? Is it visible?

There is a tool called reflector widget that can help you figure out what’s going on.

1 Like

Quest list is a scroll box. Btw i tried with vertical box too but still not working. I didn’t figure out what is the main problem. When i add this widget to viewport its working, but when i tried to put it any kind of container like scroll box, vertical box, border etc. its not working.

  • double check the visibility settings of those 2 elements:
    image

  • double check the visibility setting of the widget you’re inserting into the Quest List

  • double check the zOrder of the Size Box

  • or, ideally, as @DomusLudus suggested → run the Widget Reflector to immediately find out what is going on; it takes a while to get used to it, though. But, in short:

    • run:
      image

    • pick:
      image

    • run the project, add quests, mouse over everything → try to make sense of what the reflector is trying to tell you


If you can’t decipher it (few can), post a screenshot while you mouse over the missing widget; the expected result would look close to:

This is the first time i hear widget reflector. Thank you for teaching me. I will try to use it when i go home. Depending on the situation, I will write the solution to the problem if I can find it. If I cannot find it, I will consult you. Thanks for your interest.

1 Like

There is also a chance this is not working as intended because of this:

image

Could you test it by setting a fixed Size Y? The scrollbox full of children may not report its Desired Size back so the Size Box does not really know what to autosize to.

I tried, unfortunatly doesnt work. :frowning:
Finding the cause of the problem can be good for knowledge. So I’ll try some more, but if I can’t find it, I’ll create a different system :confused:

And if you add a couple of Quest Widgets directly in Designer, will they be visible? Or try without size box, just Canvas and scroll box?

1 Like

And can you add widget to a scroll box? Does that work?, I usually put a “vertical box” inside the scroll box and add the widgets there

Yes scroll box is a kind of container too. Also guys thanks for interest. I solved it. It is workin. I did the referencing incorrectly. Since I could not define QuesetManager to my MainWidget, any action I made from my QuestManager was not reflected on my main screen. <3

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