So I’m trying to implement Edge Scrolling and I can’t seem to make it work using with none of these functions: APlayerController->GetViewportSize(…), GetWorld()->GameGameViewport()->GetViewportSize(…), UWidgetLayoutLibrary::GetViewportSize(…);
But when I tried to do the same thing in Blueprints and use ‘Get Viewport Size’ function, everything seems to work normally so how can I make it work in C++, what can I be missing?
P.S I’m using PlayerController->GetMousePosition() in both cases (BP and CPP)