# How can I render the game to a portion of the screen?

**URL:** <https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, UI, question, CPP\
**Created:** [April 6, 2016, 9:59pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203 "2016-04-06T21:59:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZacharyLewis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacharyLewis](https://forums.unrealengine.com/u/ZacharyLewis)\
**Post date:** [April 6, 2016, 9:59pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/1 "2016-04-06T21:59:14Z")

</div>

## Issue

I’d like to be able to specify a region of the screen to use as the drawable area. I currently have a scene in game and a UMG widget I can toggle on and off acting as a sidebar.

When the sidebar is visible, I’d like to resize the render region to compensate for the screen space the sidebar occupies to keep the scene centered in the visible area.

## Attempted Solutions

I’ve tried to offset the camera to “re-center” the scene to compensate for the sidebar, but manipulating the perspective camera makes interaction feel more incorrect than having a portion hidden, since the user expects the camera to be capturing from the center of the visible area.

I’ve tried capturing the scene using a scene capture camera, but faking the view that way makes input a pain. Additionally, I feel fairly confident that the correct solution doesn’t involve rendering the whole scene twice then obscuring one of those scenes with a fixed-resolution render of said obscured scene.

I’ve looked into doing something silly with splitscreen layouts, but realized that it was silly and there is probably a more correct way to achieve this.

## Example

**Current Screen**

 ![85657-current-with-sidebar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/2/6228b9ada0d866b7fd9e8e6a8144672b02dbcb28.png)

Here’s what’s currently happening when I display the sidebar. Notice how the snowmobile is _technically_ centered on the screen, but is effectively partially offscreen, hidden behind the sidebar widget.

**Desired Screen**

 ![85658-desired-with-sidebar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/0/140acd8bb5a4c2cfa9b2011bc03c8995728b0b2c.png)

Here’s an example of what I’d like the scene to look like when I display the sidebar. Notice how the scene is centered in the area not occupied by the sidebar. The game knows it can only render to a specific region, so the camera compensates for it (similar to changing screen resolution).

**Desired Screen (HUD Hidden)**

 ![85659-desired-without-sidebar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/1/ed140d353f676b49e0d16e3397df5b711d3c0cfb.png)

Finally, here’s what I assume it would look like with the render region resized without displaying the sidebar. This image is to show that I’m _not_ wanting to shift the camera, but instead to render the exact same scene on only a portion of the screen.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5b590faa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5b590faa](https://forums.unrealengine.com/u/anonymous_user_5b590faa)\
**Post date:** [September 8, 2016, 1:51pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/2 "2016-09-08T13:51:23Z")

</div>

Were you ever able to find a solution to this? It would be helpful for a project I’m building and I can’t find any information elsewhere.

---

<div class="post-metadata">

**Author:** ![ZacharyLewis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacharyLewis](https://forums.unrealengine.com/u/ZacharyLewis)\
**Post date:** [September 8, 2016, 5:49pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/3 "2016-09-08T17:49:15Z")

</div>

Unfortunately, I wasn’t able to find any way to change the render size and position on the screen. My solution involved using the screen size, distance from the camera and field of view to manually offset the camera to meet my needs.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5b590faa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5b590faa](https://forums.unrealengine.com/u/anonymous_user_5b590faa)\
**Post date:** [October 6, 2016, 2:35pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/4 "2016-10-06T14:35:34Z")

</div>

I asked separately and as a result there is a pending feature request. Vote for it and hopefully it becomes a reality.

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-36928)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![XyonFox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XyonFox](https://forums.unrealengine.com/u/XyonFox)\
**Post date:** [August 29, 2017, 4:34pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/5 "2017-08-29T16:34:31Z")

</div>

It’s sad that no one know a way. I’d really love to know how 😕

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [August 29, 2017, 7:49pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/6 "2017-08-29T19:49:17Z")

</div>

2 options

1. Viewport widget in UMG or Slate, never used it yet so you need to test out it works, use Slate if you need to it gives more options and as i remeber they added viewport widget as experimental in UMG. This might take some proformance or else you manipulate main viewport settings which probably requires C++
2. Use Post Processing material, make centered UV map (it should take simple math) only to portion of the screen and make text aperr on empty space

Moving camera is also good option 🙂 it does not matter how you do it as long it is not resource heavy and slick, the final effect is most importent

---

<div class="post-metadata">

**Author:** ![Manking-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Manking-1](https://forums.unrealengine.com/u/Manking-1)\
**Post date:** [March 26, 2023, 5:14pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/7 "2023-03-26T17:14:53Z")

</div>

Is it possible to do this in version 5?

In Unity3D, such things are very easy to do through clipping planes and viewport rect.

I’m surprised that unreal can’t handle such simple things. And apparently this will not be possible at all because of the more primitive architecture of the engine than Unity3D. ☹

---

<div class="post-metadata">

**Author:** ![Sean\_Maxhell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Maxhell](https://forums.unrealengine.com/u/Sean_Maxhell)\
**Post date:** [June 7, 2024, 10:28am UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/8 "2024-06-07T10:28:50Z")

</div>

Any Solution?

---

<div class="post-metadata">

**Author:** ![Aubrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aubrey](https://forums.unrealengine.com/u/Aubrey)\
**Post date:** [November 18, 2024, 5:21pm UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/9 "2024-11-18T17:21:09Z")

</div>

Hi, i had a need to do this for some of my apps.  
I added the solution as part of a plugin called EnhancedUi. Which is mainly tools to build “Editor Like” UI/Ux at runtime.

In short you can use the UMG Splitter(from plugin too) and the Viewport Window…  
Ive also given a more detailed answer here : [Split viewport into areas of different contents](https://forums.unrealengine.com/t/split-viewport-into-areas-of-different-contents/335038)

The guide : [UE5 Separate Viewport From Widgets: EnhancedUI – Enhanced UI Plugin](https://store.algosyntax.com/tutorials/unreal-engine/ue5-separate-viewport-from-widgets-enhancedui)

The pluign on fab: [https://www.fab.com/listings/b8777f94-8b76-4af9-a110-3c6329b31d06](https://www.fab.com/listings/b8777f94-8b76-4af9-a110-3c6329b31d06)

Free Shipped/Packaged game to test: [Unreal Musician on Steam](https://store.steampowered.com/app/2881110/Unreal_Musician/)

---

<div class="post-metadata">

**Author:** ![jackcayc924](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jackcayc924/32/1129449_2.png) [@jackcayc924](https://forums.unrealengine.com/u/jackcayc924)\
**Post date:** [December 13, 2025, 1:07am UTC](https://forums.unrealengine.com/t/how-can-i-render-the-game-to-a-portion-of-the-screen/353203/10 "2025-12-13T01:07:48Z")

</div>

For those still looking for a solution, I developed a free Viewport Manager plugin that attempts to solve this issue. I hope it works out for you and your use-case: [ViewportManager](https://www.fab.com/listings/6bc8b467-2ef5-4848-8c26-170893b0998c)
