Where in the C++ source is splitscreen implemented?

Viewport classes ofcorse :stuck_out_tongue:

Aspecially UGameViewportClient

Pretty much what the question is asking. I’m trying to render two viewports simultaneously in a singleplayer game, and I figure this would be a good place to start looking.

Ah, very logical place! lol. I’m just beginning to delve into the engine code, it’s quite a complex beast. Thanks for the push in the right direction.

So you dont have to search :wink:

The code to create custom splitscreen viewports can be found here: ā€˜Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h’ ā€˜Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp’ ā€˜Engine/Source/Runtime/EngineSettings/Classes/GameMapsSettings.h’

Hi, please visit the ā€œiLocalPlayerā€ UE4 C++ Plugin: iLocalPlayer4UE4 in Code Plugins - UE Marketplace
Functions of this plugin :1. Side-by-Side Stereo 3D implementing; 2. Asymmetric projection(or named asymmetric view frustum) implementing.

Hope this helps you.