Change ScreenLocation to FVector instead of FVector2D in line 44.
auto ScreenLocation = FVector(ViewportSizeX * CrosshairXLocation, ViewportSize.Y * CrosshairYLocation, 0.0f);
Change ScreenLocation to FVector instead of FVector2D in line 44.
auto ScreenLocation = FVector(ViewportSizeX * CrosshairXLocation, ViewportSize.Y * CrosshairYLocation, 0.0f);