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

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.


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

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