Render viewport in world

Hi, as the title says,I basically want a camera with UI to render on a TV screen placed in world. Sry for beginner question.

  1. Create a render target texture and set these setting

  2. From your tv mesh, set it screen to that created render texture.

  3. Create a bp Actor and add the component “SceneCaptureComponent2D”, this will be your camera that will capture the screen and displaying it on the texture we just created.

  4. Scene Capture Component detail panel setting:

  5. You can then make a widget ui to control the rotation/location of that Actor(using get actor of class or other method)

You will need to play around the post processing and Show Flags to get a good result.
Other condition might be added to prevent running the camera tick when not in used/view.

I got to this render target part, but I have no idea how to smack UI onto the render target texture

If the ui is captured with the render target, you won’t be able to interact with the ui since it will be a texture.

You will have to somehow overlay it with a widget ui or widget component.

The thing I’m trying to do is a tv that displays something and you can interact with it to see what it sees. I can maybe not display UI on the TV and just add it when you click the TV. Does that make sense?

Do you mean like the game Metro Exodus