How to convert world loacation of actors to screen loaction?

Hi all

Can anyone tell me how the Convert World Location To Screen Location node works?

No matter what numbers I put into the “World Location” pin, the value also get (0,0) from the “Screen Location” pin. Or any other better methods that can get the Screen Coordinate of actor. Can someone help me or give me a hint?

Thanks.

2 Likes

What’s the value you’re passing in? I have used that before and I think I had to normalize the vector but I’m not 100% sure and I’m not in front of my computer at the moment.

is the world location visible?

Where did you put that node? I can only place it in the player controller and it defaults to self - this is where it works and I checked in 4.10.1. I cannot place it in level blueprint or custom actor blueprint.

I believe that may be a reason.

Hello CZEROZERO,

I have provided an example below to help explain the way ConvertWorldLocationToScreenLocation works. I hope that this information helps.

Example:

In the example below I have used the first person template and I have opened the level blueprint. Next, I dragged a reference to one of the cubes into my level blueprint and got it’s location. Finally I used tick to print out what the screen location would be on tick.

Make it a great day

3 Likes

Thanks for all the response! It’s really a great help to me.