How do you get a player pawn reference in a menu widget?

I want to have a cinematic play in the background when the user is at the in game menu.
And when the user clicks on “resume”, I want the view to go back to the in-game pawn.

As you can see, I tried copying and pasting a pawn reference from the level blueprint because I couldn’t find the pawn reference in the right-click menu.
So how do I get the pawn reference in there?

You can get a pawn reference from your playerController by using “GetControlledPawn”](Get Controlled Pawn | Unreal Engine Documentation) function.

1 Like

Im not sure, but you can use node “get owning player” and drag from that node get controlled pawn.

Is this what you mean?

It doesn’t seem to do anything. The widget closes, but the view is still stuck to the cinematic camera.

Is this what you mean?

It doesn’t seem to do anything. The widget closes, but the view is still stuck to the cinematic camera.
[/QUOTE]

So, when you click “resume”, you are at cinematic view and you want to go back to pawn? Show BP where you are entering to cinematic view.
I not tried it but its probably easy, when you entering to cinematic, store somewhere pawn reference and then pass it to widget.


This is in my level blueprint

And how do you store a pawn reference?