[BUG REPORT]Split Screen On Android BUG

Build Type: ‘Binary’ build from the Unreal Launcher.

Build version: 4.12.5

Detailed description of the issue: (The issue is occurring with default third person project settings, not only with my custom project.)

Suppose we have 2 players(local player):

  1. The viewport area of P1 and P2 is inverse between my android phone(Xiaomi 2s & Nubia z10) and PC editor, but the UMG widgets are the same position(I add them to P1 screen.), so the widgets is wired on phone.

102595-1.png

  1. I manually change the FPerPlayerSplitscreenData in GameViewportClient.cpp to solve the first problem, but the touch input area(I test it using overlap event on actor) of P1 and P2 seems not change(Not sure, but definitively WRONG).

Code:

void AThirdPersonMobileCharacter::SetViewport2(float a, float b)
{
	UGameViewportClient* ViewportClient = GetWorld()->GetGameViewport();
	ViewportClient->SplitscreenInfo[1].PlayerData[0].SizeX = 1;
	ViewportClient->SplitscreenInfo[1].PlayerData[0].SizeY = a;
	ViewportClient->SplitscreenInfo[1].PlayerData[0].OriginX = 0;
	ViewportClient->SplitscreenInfo[1].PlayerData[0].OriginY = 0;
	ViewportClient->SplitscreenInfo[1].PlayerData[1].SizeX = 1;
	ViewportClient->SplitscreenInfo[1].PlayerData[1].SizeY = b;
	ViewportClient->SplitscreenInfo[1].PlayerData[1].OriginX = 0;
	ViewportClient->SplitscreenInfo[1].PlayerData[1].OriginY = a;
}
  1. When you change the viewport data(split scrren data) of 2 players but not fill in all the window size(for example, use above function : SetViewport2(0.7, 0.1)),wired thing happens(wrong render result), but work well on PC editor. Also not work on one player condition.
    P.S. All above works fine on IOS.

Screenshots/Link to video: None.

Repro Steps: See Detailed description.

System Specs: xiaomi: Xiaomi Mi 2S - Full phone specifications

Attachments: None.

(´;ω;`)

Thanks in advance.

any staff QAQ?

Thank you for your report. We will begin investigation into this issue as soon as possible. If we are unable to reproduce the problem, or need more information, we will follow up with some additional questions for you. Otherwise, we will post an ‘Answer’ once the issue has been logged in our bug database or we have a solution for it.

Thank you~~~

Hey cuoxia,

Can you take a screenshot on your phone(s) to show the issue with the split viewport?

Thanks.

PC Editor(Player1 has a button at lower-left corner)

Android Portrait

Android Landscape

Manually change viewport area to 0.3:0.7:

PC Editor

Android Landscape

I forget how the inverse issue happens, but it seems more bad than that now. Button disappear, P2 viewport not shown and command line info not there(I’m using Development mode)

Thank you for the report. I was able to reproduce this issue on my end and have entered a issue report for it. You can follow it here:

https://issues.unrealengine.com/issue/UE-35204

It’s still not fixed in 4.16.1 even though it says the bug is fixed in 4.15, can you confirm if it’s fixed ?

can you please say how you achieved split screen for android
i am working on it from last 10 days one screen is getting black while in system it is working fine
let me know if you can help me :slight_smile: