UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ViewportSplitScreen.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#include "ViewportSplitScreen.generated.h"
8
20UENUM(BlueprintType)
22{
23 enum Type : int
24 {
25 // No split
27 // 2 player horizontal split
29 // 2 player vertical split
31 // 3 Player split with 1 player on top and 2 on bottom
33 // 3 Player split with 1 player on bottom and 2 on top
35 //3 Player vertical split
37 //3 Player horizontal split
39 // 4 Player grid split
41 // 4 Player vertical split
43 // 4 Player horizontal split
45
47 };
48}
49
52{
53 float SizeX;
54 float SizeY;
55 float OriginX;
56 float OriginY;
57
58
60 : SizeX(0)
61 , SizeY(0)
62 , OriginX(0)
63 , OriginY(0)
64 {
65 }
66
74
75};
76
82
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UENUM(...)
Definition ObjectMacros.h:749
Definition Array.h:670
Definition ViewportSplitScreen.h:22
Type
Definition ViewportSplitScreen.h:24
@ FourPlayer_Horizontal
Definition ViewportSplitScreen.h:44
@ ThreePlayer_Horizontal
Definition ViewportSplitScreen.h:38
@ ThreePlayer_Vertical
Definition ViewportSplitScreen.h:36
@ FourPlayer_Grid
Definition ViewportSplitScreen.h:40
@ SplitTypeCount
Definition ViewportSplitScreen.h:46
@ TwoPlayer_Horizontal
Definition ViewportSplitScreen.h:28
@ FourPlayer_Vertical
Definition ViewportSplitScreen.h:42
@ ThreePlayer_FavorTop
Definition ViewportSplitScreen.h:32
@ TwoPlayer_Vertical
Definition ViewportSplitScreen.h:30
@ ThreePlayer_FavorBottom
Definition ViewportSplitScreen.h:34
Definition ViewportSplitScreen.h:52
float OriginX
Definition ViewportSplitScreen.h:55
FPerPlayerSplitscreenData()
Definition ViewportSplitScreen.h:59
float SizeY
Definition ViewportSplitScreen.h:54
float OriginY
Definition ViewportSplitScreen.h:56
FPerPlayerSplitscreenData(float NewSizeX, float NewSizeY, float NewOriginX, float NewOriginY)
Definition ViewportSplitScreen.h:67
float SizeX
Definition ViewportSplitScreen.h:53
Definition ViewportSplitScreen.h:79
TArray< struct FPerPlayerSplitscreenData > PlayerData
Definition ViewportSplitScreen.h:80