APlayerController::GetViewportSize

Helper to get the size of the HUD canvas for this player controller. Returns 0 if there is no HUD

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h

Include

#include "GameFramework/PlayerController.h"

Syntax

void GetViewportSize
(
    int32 & SizeX,
    int32 & SizeY
) const

Remarks

Helper to get the size of the HUD canvas for this player controller. Returns 0 if there is no HUD

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss