Hi everyone,
I have a scenario where I need the player to be able to click a button and a high res screenshot is take of a particular view that is not the players viewport.
Below is an image of the blueprint for the widget which allows the player to click a button in play and it takes a high res screenshot. I can’t for the life of me figure out how to attach this function to an alternative camera rather than the first person player - does anyone know how I can do this?
Cheers,
https://forums.unrealengine.com/core/image/gif;base64
Hi man ,
That high res screenshot node can be connected to a Camera Actor , so from the main panel on the left of unreal , where you can find the basic shapes and trigger, and drop in a Camera Actor.
From your blueprint you can use Get actor of class (Camera actor) to get a reference to her and pin her in.
Thanks for your help!
Apologies, I’m pretty new to this - are you able to give me a little more info?
I’ve dropped in a camera actor to my World Level and back in the Widget Blueprint, referenced the new camera in Get Actor of Class.
When the game is played, the screenshot is no longer what the player is viewing, but the view in the editing screen - not the view from the camera set up in the World Level.
Cheers!
For future users, here’s what I ended up doing as a workaround…
When the ‘Next’ button was clicked it went to the screenshot camera view then took a screenshot. I didn’t figure out how to make it work without changing the players view, but luckily for me this way was acceptable. The key node to make this happen was Set View Target with Blend.
I was also having problems setting a location for the screenshot to go that would work on any computer and be easily accessed by the player. For this I set the save location in Project Settings to the C Drive and had it create a ‘MyScreenshot’ folder in which the screenshot was saved on the players PC.
Best of luck!
2 Likes