I have written a color picker in C++, which is supposed to be returning the pixel-color at the current mouse position. This works fine in PIE and in the packaged version (when it is in window mode)… but as soon as I play in fullscreen mode, the function only returns a black color:
FIntPoint GlobalMousePos;
GEngine->GameViewport->Viewport->GetMousePos(GlobalMousePos, false/*bLocalPosition*/);
FLinearColor TintColor = FPlatformMisc::GetScreenPixelColor(GlobalMousePos);
So TintColor is always black when playing in fullscreen. What am I doing wrong?