Picture for player portrait


Hello. I have been searching and watching videos for taking a picture in game like phasmaphobia and nothing I found seemed right for what I needed. Here is what I figured out and it is working great!

the image above is the blueprint code in my camera that saves the pictures.
I used a scene capture 2d for this. The camera is like a video feed but this creates a picture from it.
You can cast to the camera in a widget blueprint and display the slate brush you create with that.
By the way, make sure the compression settings are on HDR Compressed like in that picture. Otherwise, the picture will not display in the widget.

I hope this helps people!

This is the widget blueprint code