Hello, I was trying to get the project world to screen position while in VR using a widget component and widget interaction component and it kept returning a value of 0.0,0.0 and the boolean return value was always false. So I went digging through the source code and found that ProjectWorldToScreen was always returning false at the first if statement because the Result.W always returns a negative number. If anybody has a solution or any help would be appreciated!
Steps to reproduce using the VR template:
-
New Actor with widget component and PickupActorInterface
-
New widget blueprint with any widgets that can cause collision to occur.
-
Create a new function or event, similar to the below image
-
Back in the actor copy the below image
Blueprint code Images: