Placing HTML buttons on mesh

I am trying to implement this playground in my project: https://www.babylonjs-playground.com/debug.html#JUKXQD#4508

However, I am facing an issue where all of my buttons are appearing far to the left of where I click. I am able to reproduce this in the playground when I resize the editor portion to take up less of the screen. Any ideas as to how to offset this/make them responsive to screen size?

1 Like

Oh, found it, they used getRenderHeight twice.

3 Likes

Hello, is there anything more you’d like help with? :slight_smile: