How to add new widgets to widget blueprint child?

Hello, I want to create a base widget blueprint and then create blueprints inheriting from that base widget blueprint and add some additional elements to them.
This is my base widget blueprint with some elements:

Now, I create a new blueprint class and select this widget blueprint as a parent.

Everything works as expected for now, but as soon as I add any new widget (e.g. Text) the inherited widgets are no longer visible:

I also tried right-clicking on [WPB_HUD_Test] and wrapping it with canvas or overlay but nothing happens, nothing even appears in the hierarchy window.
Does anyone know how to solve this or is it even possible? Because it doesn’t seem right to copy-paste everything from the parent widget.

Hey @SnabbKneht!

So the UMG system functions a bit differently than the typical blueprint system. What I would suggest is this:

Make another widget that has the additional features you want. This is actually referred to as a child widget once it is added.

On the PARENT widget, you now add the user created widget(Childing the UserWidget).

So what you do is, your parent has A B C D. Then you have variants with EFG, EGH, FGH, etc, which are drawn based on your code, maybe a switch in the event graph. Variables and “Get child, get outer object” to get and set variables within the blueprint are your friend! Most interesting widgets are crafted with many smaller widgets as children being generated and "AddChild"ed or "RemoveFromParent"ed! :slight_smile:

Thanks, that cleared things up a lot.

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