# Use parent widget as a base

**URL:** <https://forums.unrealengine.com/t/use-parent-widget-as-a-base/1193762>\
**Category:** UI\
**Tags:** unreal-engine, Widget, Blueprint, question\
**Created:** [June 9, 2023, 10:43am UTC](https://forums.unrealengine.com/t/use-parent-widget-as-a-base/1193762 "2023-06-09T10:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tevtongermany](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tevtongermany/32/891657_2.png) [@Tevtongermany](https://forums.unrealengine.com/u/Tevtongermany)\
**Post date:** [June 9, 2023, 10:43am UTC](https://forums.unrealengine.com/t/use-parent-widget-as-a-base/1193762/1 "2023-06-09T10:43:21Z")

</div>

Hello everyone, so I’m currently working on a building system and I want to add, so the player can interact with some build pieces and change settings like light strength  
but I ran into a problem, if I make a child Widget I can’t add new widget parts like buttons and checkboxes without the parent being removed

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/8/b4896bdb764491a6c9ddde3d8056ca6f6a8b8094.png)

this is how it normally looks like

 ![Screenshot 2023-06-09 124135](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/0/2c0722317a1083cbe3ef46afd9d00e4faea9df62.png)

Hope someone could help me

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 9, 2023, 11:04am UTC](https://forums.unrealengine.com/t/use-parent-widget-as-a-base/1193762/2 "2023-06-09T11:04:40Z")

</div>

> [@Tevtongermany](#):
>
> if I make a child Widget I can’t add new widget parts like buttons and checkboxes without the parent being removed

Widgets do not inherit hierarchy (kind of), only vars and functionality. Add a `Named Slot` to the widget base class, you can then drop any widget into that slot:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/c/25cd6b23ba57a782f70e39c4c0c8ec0ef3422116.png)

Use the base class widgets and give their slots something to hold:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/f/8cff0aba08cefe70fa4cd705775b30904b3fea14.png)

This can be done dynamically, too. This way you have the visuals of the base, its funcionality intact, and additional unique functionality and visuals of the user widget. And nothing stops you from nesting things deeper and making the layout more modular.

Takes a while to get used to working like this. Sadly, the original plans of widgets inheriting stuff normally, like actors do, never materialised. 😑

---

<div class="post-metadata">

**Author:** ![Tevtongermany](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tevtongermany/32/891657_2.png) [@Tevtongermany](https://forums.unrealengine.com/u/Tevtongermany)\
**Post date:** [June 9, 2023, 11:45am UTC](https://forums.unrealengine.com/t/use-parent-widget-as-a-base/1193762/3 "2023-06-09T11:45:27Z")

</div>

uff alright thanks I’m going to try it out

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 9, 2023, 11:46am UTC](https://forums.unrealengine.com/t/use-parent-widget-as-a-base/1193762/4 "2023-07-09T11:46:14Z")

</div>

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