GetViewportSize expects an FVector2D itself, not it’s components.
this works for me
FVector2d Local_ViewportSize;
GetGameViewportClient()->GetViewportSize(Local_ViewportSize);
Also, shouldn’t it be
Local_ViewportSize.Y
instead of
Local_ViewportSize_Y