Changing Local Viewports Size

Hi all,

I’m pretty new to c++ and stumbling around in the source code provided with UE 4.7.1.

I wanted to change the viewport size of the cameras when a local player was added, and found this in the GameViewClient.cpp, around line 118:


	SplitscreenInfo[ESplitScreenType::TwoPlayer_Vertical].PlayerData.Add(FPerPlayerSplitscreenData(0.5f, 1.0f, 0.0f, 0.0f));
	SplitscreenInfo[ESplitScreenType::TwoPlayer_Vertical].PlayerData.Add(FPerPlayerSplitscreenData(0.5f, 1.0f, 0.5f, 0.0f));

I changed the values inside FPerPlayerSplitscreenData, as I assumed this is used to adjust the camera viewport position. However I didn’t noticed an effect after building the solution and testing it in the editor. Am I at the totally wrong spot?

~

By the way, does someone knows why my source code files are filled with error lines?
cantopensourcefile.jpg

Thank you in advance for any help or hints.