Screen Space Widget Component issue

I’m having some trouble with my widget component. I’ve reduced everything down to a simple case that I still can’t get working. I’m trying to setup a widget component to display its widget blueprint in screen space. I’ve created the component on my pawn, chosen the blueprint in the component properties, selected “Screen Space” from the ‘Space’ drop down. But nothing shows up when I launch the game. I’ve reduced the complexity of the blueprint so that it’s just a Text widget with static text (or just an image), but that also doesn’t display anywhere.

I’ve left all the other fields of the component as defaults and the component is a child of the pawn’s scene root. When I swap to “World Space” I can see the widget blueprint just fine (though obviously not exactly the way I want it).

Is there some other step that I’m missing or limitation I should be aware of? All the tutorials I can find seem to just do the three steps I’m doing and it just seems to work.

Stumbled upon the answer myself. Noticed when writing other code my custom pawn was not calling Super::BeginPlay. Once I added that everything worked as expected.

What did you call in the BeginPlay?

In the BeginPlay for my custom pawn I called Super::BeginPlay. So something like this:

void ACustomPawn::BeginPlay( )
{
          Super::BeginPlay( );

          // Do whatever else you wanted to do during BeginPlay
}

where ACustomPawn is a new class derived from APawn.