[REQUEST] Access inherited UI elements from child UserWidget
Currently, when you have a child widget that inherits a parent widget, there is no way of accessing the parent UI elements from the child UI (in the Designer View).
Say I have a custom button user widget (MyBaseButton) and a custom canvas (MyButtonMenu) that gets some MyBaseButtons and places them in a specific way.
Now I need a button that does everything MyBaseButton does, but is displayed slightly differently, so I create a new user widget, MySpecialButton which inherits MyBaseButton. But now I have no way of changing any property of MyBaseButton. Anything I add to the Designer view hierarchy makes the MyBaseButton disappear. If I just want MySpecialButton to be a scaled version of MyBaseButton, I can't do that.
And creating another widget MyOtherButton that does not inherit MyBaseButton but instead has MyBaseButton as a child doesn't solve this since I still want MyButtonMenu to layout the button.
Can anyone offer any insight on this issue I'm facing?
Are there any plans to improve UserWidgets in this aspect?
Thanks a lot!
This is one of the oldest problems I've faced and has annoyed me greatly.
I support a feature request for this.
Here's a step-by-step guide on how I created my own fix for it.
Now you have access to all your functions and variables from your parent widget in a child widget that you can manipulate design elements for.
From this point, you can create multiple child widgets with various changes by simply duplicating the _child widget.
Follow this question
Once you sign in you will be able to subscribe for any updates here