How to render to a section of the screen?

Hi SullairVR,

There is no easy way to alter the viewport in the way that you describe.

Method (FOV) 1: In your widget Blueprint just add widgets that will block portions of the viewport and adjust your FOV settings on your camera to match the remaining view. (may be hard to get desired results if your screen isn’t centered)

Method (RenderTarget) 2: Have your main camera detach from the player and be moved inside a hollow cube with a material that is unlit and black. Then use the 2d scene capture as your camera and draw it to a render target. You can apply that render target as a texture in a UI material and use that as an image in your Blueprint Widget. (not suggested but will work)

Method (SplitScreen) 3: In your level Blueprint create a player on begin play (make sure splitscreen is enabled in your project settings) then create your widget and add to viewport for player 0. If you have spawn pawn unchecked nothing will render to the second viewport making it black. This will allow you to constrain your main player view horizontally or vertically depending on your preference. (you are limited two screen layouts)

I plan to make a feature request for an option that will allow you to specify where your camera viewport is relative to the window.

Let me know if that helps,