# Split Screen View Border Change

**URL:** <https://forums.unrealengine.com/t/split-screen-view-border-change/1621711>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, slate, UI, Widget, CPP, question\
**Created:** [January 17, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/split-screen-view-border-change/1621711 "2024-01-17T16:08:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [January 17, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/split-screen-view-border-change/1621711/1 "2024-01-17T16:08:45Z")

</div>

I created this split screen with  
`local multiplayer, UGameViewportClient and LayoutPlayers() override`;

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/3/8a36e4af638e2248cba8d0375c921eb76d4e7dbe.jpeg)

Also I can switch controlled players with customized `SSSwapControllers` like this.

> <https://gist.github.com/ffreality/cfb1150f92819dbaf41b0df24bb1d083>

**But I want to change that black border and I ask how** ❓ ❓

Btw. I did some expriments about it and I found these.

`TSharedRef<SWidget> GameView = GEngine->GameViewport->GetWindow().ToSharedRef().Get().GetContent();`

contains actual game view and if use `SetContent(UUSerWidget::TakeWidget())`  
it will replace game view with another widget and also I can move game view to another window which I created with SWindow.

So, I used this steps to achieve my goal **but it didn’t work.**

1. I created a custom UMG with C++ and put CanvasPanel and Overlay components.  
[Custom UMG · GitHub](https://gist.github.com/ffreality/270fe5d6f169dc06385fe6f9cad8665d)

2. I set it as main window content

3. I tried to assign my custom UMG as parent of game view SWidget with SWidget::AssignParentWidget

> <https://gist.github.com/ffreality/5d4b7aadfbb234d36370d1490436437c>

Is there any suggestion for that ?

---

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [March 29, 2025, 5:44am UTC](https://forums.unrealengine.com/t/split-screen-view-border-change/1621711/2 "2025-03-29T05:44:36Z")

</div>

solved with help of canvas render targets.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 28, 2025, 5:45am UTC](https://forums.unrealengine.com/t/split-screen-view-border-change/1621711/3 "2025-04-28T05:45:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
