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:
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.
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!