Add a widget to a widget

Hello,

What I need is really simple, but I can’t seem to make it work. I just want to add a widget to a widget. Simple as that. I checked A LOT of tutorials and threads but none seem to help. Here are the steps I took:

  • Created 2 widget blueprints. One main and one with just a button and some text.
  • In my player controller, I created the main widget.
  • In my player controller, I added the button widget as a child to main widget
  • In my player controller, I added the main widget to viewport.

Result: Only the main widget appear.
I tried added to viewport before adding the child. Tried in level blueprint. Tried to add child inside main widget.

It should be super simple, but nothing works.

Here is my playerController blueprint:

what is the item list holding like quest or what? theres a couple ways to do what your trying to achieve just depends on what it is on which route to go !

Well the final goal is: have a custom blueprint pawn VIEW(just a null with a camera). For each VIEW in the level, create a button in a list in the main menu.
So everytime I add VIEW to the level, a new button gets created. When I press on the button, I posess the corresponding VIEW.

well inside player controller you only wanna add the HUD nothing else …
so everything on then 1 delete
Inside the hud click the canvaspanel and mark is variable 2nd add a empty box horizontal or vertical scroll whatever you want the itemlist to be contained in (Mark is variable as well)and then go to your item list make sure it doesnt have a panel like delete it and do a size box and make it the size you want and then inside the pawn cast to your player controller and add the child to the hud inside that code…

Not sure I understand. How can I cast my widget with playerController as my object. It doesn’t inherit from it?

did you look at the screenshots?

ok just so we can get this working for you and staying inside the player controller mark your panel is variable in your main hud and then look at this screen shot dont worry about all the add to viewport hook ups lol did it on the fly only one needs to go to add to viewport

should be easier to read

Okay it’s finally working! My error wat that I did not put the panel as a variable in my main HUD. Thank you.

your welcome!!