I have a CommonUserWidget with a CommonActivatableWidgetStack in it as per the documentation. This has my main menu, which is a CommonActivatableWidget, set as the RootContentWidgetClass. It loads and displays fine. However, I cannot for the life of my figure out how to call PushWidget on the stack from a button within my CommonActivatableWidget. I tried creating a BlueprintInterface to be able to communicate across the widgets without references, but GetParent is empty. The documentation states GetParent should be the CommonActivatableWidgetStack, but it’s not.
So does anyone know how I’m supposed to be calling PushWidget here? Below is my setup.
lol, figured it out. I’ll walk through it in the event someone else has a similar problem. I was still holding onto the principles of the documentation. Don’t. I’m sorry Unreal, but your documentation is terrible.
First step. Move the UI initialization out of the level BP where the common ui tutorial tells you to put it. Move it instead to the player controller. In that player controller store a reference to your widget. Like the following.