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)"
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)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-57273 in the post.
4 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.19 |
Target Fix | 4.20 |
Created | Apr 4, 2018 |
---|---|
Resolved | May 8, 2018 |
Updated | May 31, 2018 |
4635 - projectgheist |