# Render only parts of the screen, fill rest with UI

**URL:** <https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [February 16, 2016, 10:07pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595 "2016-02-16T22:07:38Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [February 16, 2016, 10:07pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/1 "2016-02-16T22:07:38Z")

</div>

How would I do something like this in UE4?

![gameboy-emulator-iphone.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/a/da22a21a2a2cbddabc2da1ebf655f6a1119cedd7.jpeg) ![P1040284-640x480.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/1/116b78dbbd313745f7dbbda4db73d1fe1e0fb12f.jpeg)

Only a specific part of the game should render the 3D world, while the other space on the screen should be filled with UI elements (UMG). I want to do this to save performance, since the UI is always hiding certain areas in the game, most importantly a certain percentage at the bottom of the screen.

If I just put UMG widgets on the screen,the world below is still fully rendered, the UMG widgets just hide it after its rendered. I know I could render the game to a RenderTarget and then draw it on my UMG UI, but using a SceneCapture2D as the main camera for the game does not sound like a great idea to me. There is surey a way better way to do this.

Any ideas?

---

<div class="post-metadata">

**Author:** ![cSelbrede](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cSelbrede](https://forums.unrealengine.com/u/cSelbrede)\
**Post date:** [March 23, 2016, 10:24pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/2 "2016-03-23T22:24:33Z")

</div>

I would also be interested in knowing how to do this. I’d consider the SceneCapture method, but since my game relies heavily on mouse interaction within the 3D world, RenderTargets seem like the wrong way to go.

---

<div class="post-metadata">

**Author:** ![Scatter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scatter/32/637809_2.png) [@Scatter](https://forums.unrealengine.com/u/Scatter)\
**Post date:** [August 3, 2016, 2:29am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/3 "2016-08-03T02:29:45Z")

</div>

Bump.

Has anyone found a solution for this? I’ve been looking around for quite a while now and haven’t seen anything…

---

<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:38pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/4 "2016-10-06T14:38:12Z")

</div>

The current solutions aren’t really any good. But there is hope, 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:** ![xulture](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xulture/32/921486_2.png) [@xulture](https://forums.unrealengine.com/u/xulture)\
**Post date:** [October 7, 2016, 9:42am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/5 "2016-10-07T09:42:11Z")

</div>

For a while now (tried since 4.7, but works all the way to 4.13) even with ‘Use Splitscreen’ disabled (in Project Settings, Maps & Modes, Local Multiplayer section) you can still adjust percentage of the screen to be used for rendering.

SplitScreen info can be accessed and adjusted directly. These values may give you what you need:

```auto

GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginX = .05f; // default: 0.f
GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginY = .02f; // default: 0.f
GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeX = .4f; // default 1.f
GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeY = .2f; // default 1.f

```

Make sure to check for validity of pointers used, and array indices, and, preferably run this in BeginPlay of the pawn or controller owning the widgets (presumably will not exist otherwise)

Areas outside of these will be rendered in black, so you’ll need to make up a widget to cover it with different color. 🙂 Camera positioned in the ‘middle’ of viewport will accurately be in the middle of the area you are rendering.

Edit: Widgets positioning will not be affected, so if you use widgets to draw stuff on top of render area, you’ll need to manually adjust these.

---

<div class="post-metadata">

**Author:** ![vle07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vle07](https://forums.unrealengine.com/u/vle07)\
**Post date:** [October 21, 2016, 12:42am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/6 "2016-10-21T00:42:04Z")

</div>

> [@xulture;605510](#):
>
> For a while now (tried since 4.7, but works all the way to 4.13) even with ‘Use Splitscreen’ disabled (in Project Settings, Maps & Modes, Local Multiplayer section) you can still adjust percentage of the screen to be used for rendering.
> 
> SplitScreen info can be accessed and adjusted directly. These values may give you what you need:
> 
> ```auto
> 
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginX = .05f; // default: 0.f
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginY = .02f; // default: 0.f
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeX = .4f; // default 1.f
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeY = .2f; // default 1.f
> 
> ```
> 
> Make sure to check for validity of pointers used, and array indices, and, preferably run this in BeginPlay of the pawn or controller owning the widgets (presumably will not exist otherwise)
> 
> Areas outside of these will be rendered in black, so you’ll need to make up a widget to cover it with different color. 🙂 Camera positioned in the ‘middle’ of viewport will accurately be in the middle of the area you are rendering.
> 
> Edit: Widgets positioning will not be affected, so if you use widgets to draw stuff on top of render area, you’ll need to manually adjust these.

It seems like I’m getting the full cost of rendering the original camera viewport, even with split screen cutting off a major portion of the final image. Even with the entire original camera cropped (so there’s only a black screen visible), I’m actually getting worse fps. The split screen feature might just be rendering the original view to a render target and then just scaling and cropping, which would actually increase the render cost. So I would NOT recommend using the split screen feature for doing this. You’re better off just blocking the portion you don’t want visible with a black rectangle. It’s pretty frustrating that UE4 lacks so many basic features.

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [May 24, 2017, 3:55am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/7 "2017-05-24T03:55:04Z")

</div>

> [@vle07;612490](#):
>
> It seems like I’m getting the full cost of rendering the original camera viewport, even with split screen cutting off a major portion of the final image. Even with the entire original camera cropped (so there’s only a black screen visible), I’m actually getting worse fps. The split screen feature might just be rendering the original view to a render target and then just scaling and cropping, which would actually increase the render cost. So I would NOT recommend using the split screen feature for doing this. You’re better off just blocking the portion you don’t want visible with a black rectangle. It’s pretty frustrating that UE4 lacks so many basic features.

Wow if that is true, then it is really bummer as I just spend a few days researching alternative to using 2 rtt texture (SceneCapture2D)… Is that true Epic?

---

<div class="post-metadata">

**Author:** ![profhua](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@profhua](https://forums.unrealengine.com/u/profhua)\
**Post date:** [May 24, 2017, 10:11am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/8 "2017-05-24T10:11:05Z")

</div>

how about a camera-faced plane instead of umg,just guess

---

<div class="post-metadata">

**Author:** ![Cassab2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cassab2](https://forums.unrealengine.com/u/Cassab2)\
**Post date:** [November 16, 2017, 11:43pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/9 "2017-11-16T23:43:24Z")

</div>

I’m having the same issue. Is the best solution still to go in to cpp and access player data and set the size like @xulture described above? also @anonymous_user_b31da257 's link doesn’t work, is this still a feature request?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_31802d0c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_31802d0c](https://forums.unrealengine.com/u/anonymous_user_31802d0c)\
**Post date:** [April 26, 2018, 5:41am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/11 "2018-04-26T05:41:27Z")

</div>

I’d like to know if this is updated on 2018?

---

<div class="post-metadata">

**Author:** ![skyrim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skyrim](https://forums.unrealengine.com/u/skyrim)\
**Post date:** [October 10, 2018, 7:29am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/12 "2018-10-10T07:29:16Z")

</div>

ndisplay may can do this

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_302bff67](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_302bff67](https://forums.unrealengine.com/u/anonymous_user_302bff67)\
**Post date:** [October 11, 2018, 3:03am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/13 "2018-10-11T03:03:45Z")

</div>

> [@xulture](#):
>
> For a while now (tried since 4.7, but works all the way to 4.13) even with ‘Use Splitscreen’ disabled (in Project Settings, Maps & Modes, Local Multiplayer section) you can still adjust percentage of the screen to be used for rendering.
> 
> SplitScreen info can be accessed and adjusted directly. These values may give you what you need:
> 
> ```auto
> 
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginX = .05f; // default: 0.f
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].OriginY = .02f; // default: 0.f
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeX = .4f; // default 1.f
> GEngine->GameViewport->SplitscreenInfo[0].PlayerData[0].SizeY = .2f; // default 1.f
> 
> ```
> 
> Make sure to check for validity of pointers used, and array indices, and, preferably run this in BeginPlay of the pawn or controller owning the widgets (presumably will not exist otherwise)
> 
> Areas outside of these will be rendered in black, so you’ll need to make up a widget to cover it with different color. 🙂 Camera positioned in the ‘middle’ of viewport will accurately be in the middle of the area you are rendering.
> 
> Edit: Widgets positioning will not be affected, so if you use widgets to draw stuff on top of render area, you’ll need to manually adjust these.

its work！

---

<div class="post-metadata">

**Author:** ![RyanPocock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanPocock](https://forums.unrealengine.com/u/RyanPocock)\
**Post date:** [September 6, 2023, 11:01pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/14 "2023-09-06T23:01:00Z")

</div>

I would just like to clarify this is not true anymore. It was probably different back then in 2016, but now it is not the case. Cropping the viewport using the quoted method actually gives you FPS gains because you’re rendering less on screen! Just commenting this as this thread comes up on google

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [September 6, 2023, 11:21pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/15 "2023-09-06T23:21:13Z")

</div>

FWIW: Reading the thread, I’m not convinced the original problem was that there were no rendering gains.  
It’s just as likely that the lack of FPS gains were because the GPU simply wasn’t fill rate limited, so something else was the bottleneck.  
Transform, data transfer, CPU, physics, or a bunch of other things may be limiting you, and making the screen bigger/smaller won’t change anything if that’s the case.

---

<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:30am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/16 "2024-06-07T10:30:44Z")

</div>

Any solution that doesn’t involve c++?

---

<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:02pm UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/17 "2024-11-18T17:02:05Z")

</div>

I’ve developed a solution that can be used completely from UMG without touching C++. Its also more performant as we don’t use Scene Capture, I simply grab the viewport and place it in a widget of your choosing.

You can read 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)

Link to the plugin on fab: [https://www.fab.com/listings/b8777f94-8b76-4af9-a110-3c6329b31d06](https://www.fab.com/listings/b8777f94-8b76-4af9-a110-3c6329b31d06)

---

<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:10am UTC](https://forums.unrealengine.com/t/render-only-parts-of-the-screen-fill-rest-with-ui/55595/18 "2025-12-13T01:10:53Z")

</div>

For those still looking for this kind of thing. I made a free Viewport Manager plugin, that may or may not fit your use case. I do hope it does, feel free to check it out: [ViewportManager](https://www.fab.com/listings/6bc8b467-2ef5-4848-8c26-170893b0998c)
