Widget Named Slot Problem

So I’m using widget with named slot in it for the animations. And when I creating any reference to this widget in my character, the subwidget in named slot gets cleared out of existance. The most interesting is that is happening on engine restart and not even widget itself knows that subwidget is not existing anymore before I play in the editor. I’m using 5.4.1



1 Like

We encountered the same issue. It only happens with UserWidget in a slot. Widget in a slot is safe. As a workaround you can wrap all UserWidget in a slot with a UBorder (Widget). That saves it.

It also only happens if the Parent Widget is not referenced by instance in another widget. So you can fix it by placing your Parent Widget in a HUD or something. It only happens when your Parent Widget is fresh referenced via TSubclassOf. Reference with SoftPtr might also fix it.

3 Likes

Thanks for answer!

Not referencing it at all, also fixes it. But then you can’t cook it.

I think I reproduced this bug in 5.4.4 as well. I’ll try either the wrapping or reference change and see if it works

Thanks. Perfect answer works + very informative