Can variables of a widget be shown in the properties of it's parent?

DasMatze
Mon, 21 Sep 2020 07:23:22 +0000
UI

Hi!

So far I made my widgets using child widgets I created. The more nested they are, the more variables need to be transmitted, which can get tiresome. Therefore I wonder whether a widget can show the properties of one of it’s children in the properties of the widget itself.

Example: Let’s say I have a menu, that has a custom button widget in it. This button widget consists of a button and a custom text widget. That text widget only uses a single text block.

Right now, the text in the text block from the text widget is set by a variable in the text widget. The variable of the text widget inside the button widget gets set by another variable in the button widget. What I want is to set the variable of the text widget directly using the properties panel when editing the button widget inside the menu widget. Is that possible?

Thank you in advance!

5 posts - 1 participant