Help with getting Screen Position

I made a project in Pleycanvas( where I am trying to get an HTML element positioned at two edges of a video plane.
I mage an Image and tried to get its edge position using entities on the screen, but the console log always gives me the same position even when I rotate the camera(mouse movement) or move the player character(arrow keys).

Can someone look at the following script and explain what is it I am doing wrong?
script : ‘
scene Name: ‘Video Test’

Hi @Maaz_DA and welcome,

Your code is correct, the coordinates returned by your method are right. The problem is that you grab the coordinates from a stationary camera (scene camera entity) and not the one you use to look around.

Try changing that and check again.


Thank you, I spent a lot of time but didn’t see the basic mistake.