- Create a
Render Targetasset in the content browser. I called mineCameraRender. - Create some kind of object with a
SceneCaptureComponent2Don it. Change theTexture Targetto the newCameraRenderasset. Point this object at something as if it were a camera. - Create a Material with
CameraRenderas the texture. There will probably be an error that says “Sampler Type is Color, should be Linear Color”. Just click the texture on the left, and underSampler Typechange it toLinear Color. - Now use that new material wherever you want, I used mine on a UMG Image widget.
The part that I had trouble understanding the first time, was that a Camera cannot render to a Render Target. But a SceneCaptureComponent2D can. The object in step 2 doesn’t even need a Camera in it, but it helps to move it around in the editor if there is a Camera component in it. There’s a working example with UMG inside the Content Examples project in the UMG level, section 3.1.