Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameViewportClient
Description
Get the total pixel size of the screen. This is different from the pixel size of the viewport since we could be in splitscreen
| Name | GetPixelSizeOfScreen |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h |
| Include Path | #include "Engine/GameViewportClient.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp |
void GetPixelSizeOfScreen
(
float & Width,
float & Height,
UCanvas * Canvas,
int32 LocalPlayerIndex
)