ProjectWorldToScreen always returns true.

User states:

"This probably comes from that line of code :
bResult = Player->PostProcessWorldToScreen(WorldPosition, ScreenPosition, bPlayerViewportRelative);

(In the definition of ProjectWorldToScreen in UnrealEngine/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp)

Because that function is defined that way :

bool APlayerController::PostProcessWorldToScreen(FVector WorldLocation, FVector2D& ScreenLocation, bool bPlayerViewportRelative) const

{ return true; }

(In UnrealEngine/Engine/Source/Runtime/Engine/Private/PlayerController.cpp)"

Steps to Reproduce

1. Use ProjectWorldToScreen node in a 4.19 project (Image of my setup attached)
2. PIE and look around (0,0,0 location will be projected to x,y of screen)
3. When looking away from 0,0,0 "true" will still be output (Would change to false in 4.18)

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-57273 in the post.

Login to Vote

ComponentUE - Gameplay - Blueprint
Affects Versions4.19
Target Fix4.20
Fix Commit4056645
Main Commit4058964
Release Commit4095966
CreatedApr 4, 2018
ResolvedMay 8, 2018
UpdatedMay 31, 2018
Pull Requests