[BUG] Child clears parent's widget tree

I have some widget with specified widget tree, but I can’t use inherited subwidgets of this widgets. Designer window is empty, but I can’t create widgets named as in ancestor.

Child created by context menu at workspace of content browser: Create Basic Asset → Blueprint class

Hi broly,

This is expected behavior. Widgets cannot be derived from other widgets. Instead, you can call a widget using the palette to use a created widget.

But I want extend my widget. For example in my widget there is VerticalBox, and in inheritor I could place new items to widget. How to do it without this way?

What I would do is create a custom event with inputs to accept new values that you want to pass into the original widget. Let’s take an inventory for instance. You can call the inventory widget into another widget, and call the custom event to set what items are in inventory slots, adding child components inside the box as needed. In the case of changing progress bars for mana, health, etc. That is a simple variable switch that can be done in the same way (call custom event, pass in the new variables).

This is generic situation when all data is goes from business logic. Custom events is of course in this case. But for example creating spoilers with specific set of fields inside is more easy to define manually, without custom events.
I think UMG must be finalized by developers. Are there any plans to improve UMG?

And thanks for your answer, Devis!

This is not likely to change in the near future. Widgets are not the same as other blueprints in terms of derivation and parenting. The current method is to place the functionality you are looking for within one widget, then call that widget inside of another widget using the palette window.

Thank you!