I want to accomplish something that should be quite simple. However I explored the engine’s source code, the documentation, and the forum, and I was not able to find anything about it (though it’s possible that I didn’t use the right search keywords, so any hint would be helpful).
I started from one of the templates and added an ACameraActor in the corner of the map. I would like to access what the camera sees as a frame buffer in C++. I am able to access the main viewport as a TArray<FColor>
using FSlateApplication::Get().TakeScreenshot
. How can I do the same for other cameras or viewports? I feel like I probably missed something obvious. Thank you for any help!