Yeah this doesn’t work for me. I’ve tried every answer suggested in this post. I’ve tried solutions in Initialize(), NativeConstruct(), NativeOnInitialized(), and RebuildWidget(). In every case the UMG’s hierarchy is blank. Unbelievable that we can’t have an easy way to add UMG via C++ in 2024.
Looks like I need to go down the rabbit hole that is UWidgetBlueprintGeneratedClass. Smh.