Default Widget Reference Value in Parent Widget Resets on Compile

Josterd
Tue, 29 Sep 2020 09:30:01 +0000
UI

Made a C++ class deriving from UUserWidget
Added an “EditAnywhere” variable, being a pointer to another widget.

I can set the default value of this through the Details panel to be one of the child elements, but as soon as I compile, this gets reset back to nullptr.
However, when I use this widget as an element in another widget, then I can set the reference and it will stay.

So it seems impossible to set the default value of a pointer inside a widget? It’s possible to set this up through the Preconstruct, but it is cleaner if I could just use the dropdown menu in the Details panel.

Any thoughts on this would be much appreciated!

5 posts - 1 participant