# How to change the camera's view size in the viewport

**URL:** <https://forums.unrealengine.com/t/how-to-change-the-cameras-view-size-in-the-viewport/458094>\
**Category:** Rendering\
**Tags:** size, view, unreal-engine, Rendering, Widget, question\
**Created:** [November 6, 2019, 11:20am UTC](https://forums.unrealengine.com/t/how-to-change-the-cameras-view-size-in-the-viewport/458094 "2019-11-06T11:20:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gamji](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gamji](https://forums.unrealengine.com/u/Gamji)\
**Post date:** [November 6, 2019, 11:20am UTC](https://forums.unrealengine.com/t/how-to-change-the-cameras-view-size-in-the-viewport/458094/1 "2019-11-06T11:20:43Z")

</div>

Hi all,

I’ve been looking for way to change the size the camera view takes in the viewport. This would basically allow me to create something like in the following screenshot, a big UI that with a dedicated space for the camera view.

I know I could use a Render Target, but I find a bit inefficient and it doesn’t seem to capture post processing which I need.

**I was wondering if anyone had tips or knowledge of any class that is responsible for the camera’s rendering in the viewport. I struggled to pin point where to find the corresponding classes in the source code.**

![253631-beholder.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/5/4956d36bc0406426b9f7aa6e00fd48d872fdcd35.png)

---

<div class="post-metadata">

**Author:** ![MrMcKvarz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrMcKvarz](https://forums.unrealengine.com/u/MrMcKvarz)\
**Post date:** [November 6, 2019, 6:22pm UTC](https://forums.unrealengine.com/t/how-to-change-the-cameras-view-size-in-the-viewport/458094/2 "2019-11-06T18:22:17Z")

</div>

You can get main viewport window and add any ui elements you want. But you’ll have to deal with slate. Its UGameEngine::GameViewportWindow.

---

<div class="post-metadata">

**Author:** ![DennisMahan1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DennisMahan1](https://forums.unrealengine.com/u/DennisMahan1)\
**Post date:** [September 16, 2022, 9:28pm UTC](https://forums.unrealengine.com/t/how-to-change-the-cameras-view-size-in-the-viewport/458094/3 "2022-09-16T21:28:30Z")

</div>

Can you elaborate on this? I don’t know what you mean
