Canvas position on webpage

I have a button on the game canvas. I know its position.
I wanted convert that position to web page coordinates.

I wanted to position html element over that button.

Can anyone provide some help on this?

1 Like

Did you try convertToWorldSpace?

More info convertToNodeSpace by itself

@dimon4eg it does not seems to give the correct place on the web page.

When i resize the window, canvas position remain the same but the position div should place keep changing.

Is there a way to find where the canvas is on the webpage?
Can anyone provide some help on this?